Explorar o código

darkirc/client: Fix logic bug in channels_joined.

parazyd %!s(int64=3) %!d(string=hai) anos
pai
achega
b807def356
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      bin/darkirc/src/irc/client.rs

+ 1 - 1
bin/darkirc/src/irc/client.rs

@@ -183,7 +183,7 @@ impl<C: AsyncRead + AsyncWrite + Send + Unpin + 'static> IrcClient<C> {
             }
 
             // Skip everything if we're not joined in the channel
-            if self.channels_joined.contains(&msg.target) {
+            if !self.channels_joined.contains(&msg.target) {
                 return Ok(())
             }