diff options
author | Joel Rosdahl <joel@rosdahl.net> | 2011-11-21 13:51:23 +0100 |
---|---|---|
committer | Joel Rosdahl <joel@rosdahl.net> | 2011-11-23 22:21:35 +0100 |
commit | 60b4d67273ef0aaf04d9364b7f1317c61018229e (patch) | |
tree | f351e91abe099be01f8a466d87fab0bbbd56a661 | |
parent | b08458f3c081edfc0549ae59187c1f6a5aed809e (diff) | |
download | miniircd-60b4d67273ef0aaf04d9364b7f1317c61018229e.tar.gz miniircd-60b4d67273ef0aaf04d9364b7f1317c61018229e.zip |
Allow specified key for keyless channels
-rwxr-xr-x | miniircd | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -196,7 +196,9 @@ class Client(object): self.reply_403(channelname) continue channel = server.get_channel(channelname) - if channel and channel.key != keys[i]: + if channel \ + and channel.key is not None \ + and channel.key != keys[i]: self.reply( "475 %s %s :Cannot join channel (+k) - bad key" % (self.nickname, channelname)) |