summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2011-11-21 13:51:23 +0100
committerJoel Rosdahl <joel@rosdahl.net>2011-11-23 22:21:35 +0100
commit60b4d67273ef0aaf04d9364b7f1317c61018229e (patch)
treef351e91abe099be01f8a466d87fab0bbbd56a661
parentb08458f3c081edfc0549ae59187c1f6a5aed809e (diff)
downloadminiircd-60b4d67273ef0aaf04d9364b7f1317c61018229e.tar.gz
miniircd-60b4d67273ef0aaf04d9364b7f1317c61018229e.zip
Allow specified key for keyless channels
-rwxr-xr-xminiircd4
1 files changed, 3 insertions, 1 deletions
diff --git a/miniircd b/miniircd
index f4c98cd..74f1fc6 100755
--- a/miniircd
+++ b/miniircd
@@ -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))