From df667150895633b1da789b2c8df9407d399dbf82 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 20 Apr 2003 17:28:26 +0000 Subject: [PATCH] Oops...should run the tests before submitting new assertions :) --- src/ircmsgs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ircmsgs.py b/src/ircmsgs.py index a26ea4f2f..7f91c2ad9 100644 --- a/src/ircmsgs.py +++ b/src/ircmsgs.py @@ -373,7 +373,7 @@ def join(channel, key=None, prefix=''): if key is None: return IrcMsg(prefix=prefix, command='JOIN', args=(channel,)) else: - assert key.translate(string.ascii, string.ascii[128:]) == '' and \ + assert key.translate(string.ascii, string.ascii[128:]) == key and \ '\x00' not in key and \ '\r' not in key and \ '\n' not in key and \ @@ -395,7 +395,7 @@ def joins(channels, keys=None, prefix=''): args=(','.join(channels),)) else: for key in keys: - assert key.translate(string.ascii, string.ascii[128:]) == '' and \ + assert key.translate(string.ascii, string.ascii[128:]) == key and \ '\x00' not in key and \ '\r' not in key and \ '\n' not in key and \