From 39f427d4be47e2d58054817815e68971b60d90dc Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sun, 12 Sep 2004 05:48:36 +0000 Subject: [PATCH] Even when not strict, spaces can't be in nicks. --- src/ircutils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ircutils.py b/src/ircutils.py index 1bd1fe634..abf2cf8fe 100644 --- a/src/ircutils.py +++ b/src/ircutils.py @@ -122,7 +122,7 @@ def isNick(s, strictRfc=True, nicklen=None): ret = len(s) <= nicklen return ret else: - return not isChannel(s) and not isUserHostmask(s) + return not isChannel(s) and not isUserHostmask(s) and not ' ' in s def isChannel(s, chantypes='#&+!'): """Returns True if s is a valid IRC channel name."""