Canonicalize nicks

For IRC, this mean case insensitivity
This commit is contained in:
moneromooo 2015-01-30 18:13:52 +00:00
parent a7ac4f8b1c
commit c03f518b96
4 changed files with 57 additions and 1 deletions

View file

@ -87,6 +87,9 @@ class IRCNetwork(Network):
def is_identified(self,link):
return link.identity() in self.registered_users
def canonicalize(self,nick):
return nick.lower()
def join(self,chan):
self._irc_sendmsg('JOIN '+chan)