From 1ba0fccd348b8b52eca2a5cc7cc8f7cc612bd309 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 16 Sep 2004 14:29:13 +0000 Subject: [PATCH] Slight tweak to make a test in test_Channel.py pass. --- src/ircutils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ircutils.py b/src/ircutils.py index b06f3297b..f89796604 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -122,7 +122,9 @@ def isNick(s, strictRfc=True, nicklen=None): ret = len(s) <= nicklen return ret else: - return not isChannel(s) and not isUserHostmask(s) and not ' ' in s + return not isChannel(s) and \ + not isUserHostmask(s) and \ + not ' ' in s and not '!' in s def isChannel(s, chantypes='#&+!'): """Returns True if s is a valid IRC channel name."""