changeset 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 01f1c6cb7447
children 6c4b841144f6
files irclib.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: