diff --git a/src/client/server/mod.rs b/src/client/server/mod.rs index a3c8ecb..ea42282 100644 --- a/src/client/server/mod.rs +++ b/src/client/server/mod.rs @@ -339,14 +339,14 @@ impl IrcServer where Connection: Reconnect } else if let Ok(cmd) = msg.into() { match cmd { PING(data, _) => try!(self.send_pong(&data)), - JOIN(chan, _, _) => { + JOIN(chan, _, _) => if cfg!(not(feature = "nochanlists")) { if let Some(vec) = self.chanlists().lock().unwrap().get_mut(&chan.to_owned()) { if let Some(src) = msg.get_source_nickname() { vec.push(User::new(src)) } } }, - PART(chan, _) => { + PART(chan, _) => if cfg!(not(feature = "nochanlists")) { if let Some(vec) = self.chanlists().lock().unwrap().get_mut(&chan.to_owned()) { if let Some(src) = msg.get_source_nickname() { if let Some(n) = vec.iter().position(|x| x.get_nickname() == src) {