diff irclib.py @ 71:c5e4bf95f52a

Dots are forbidden in IRC nicknames Signed-off-by: Charly COSTE <changaco@changaco.net>
author Charly COSTE <changaco@changaco.net>
date Sun, 30 Aug 2009 22:46:02 +0200
parents 0a2b9e84bbde
children 676c2d2bf240
line wrap: on
line diff
--- 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: