# HG changeset patch # User Charly COSTE # Date 1251665162 -7200 # Node ID c5e4bf95f52a0945de6b8947a0443b021ab5a878 # Parent 01f1c6cb744730594de9c741b2d04189b640800f Dots are forbidden in IRC nicknames Signed-off-by: Charly COSTE diff --git a/irclib.py b/irclib.py --- a/irclib.py +++ b/irclib.py @@ -803,7 +803,7 @@ class ServerConnection(Connection): """Send a NICK command.""" if callback != None: self.add_nick_callback(callback) - if ' ' in newnick: + if re.search('[ \.]', newnick) != None: self._call_nick_callbacks('erroneusnickname') return False try: