From ebb9e206701ff3c538f34c58d8e7a4d6f9f314c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gustav=20S=C3=B6rn=C3=A4s?= Date: Fri, 11 Jun 2021 03:24:57 +0200 Subject: doc func --- mumd/src/state/server.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mumd') diff --git a/mumd/src/state/server.rs b/mumd/src/state/server.rs index 58c614c..4abde49 100644 --- a/mumd/src/state/server.rs +++ b/mumd/src/state/server.rs @@ -132,6 +132,9 @@ impl Server { }) } + /// Returns the currenctly connected channel. + /// + /// Returns None if not connected. pub fn current_channel(&self) -> Option<(u32, &Channel)> { let channel_id = self.users().get(&self.session_id()?)?.channel(); let channel = self.channels().get(&channel_id)?; -- cgit v1.2.1