Fixed bug in Channel.

This commit is contained in:
Jeremy Fincher 2003-06-02 07:21:08 +00:00
parent 4be5d42dc5
commit ec8011347c

View File

@ -157,7 +157,7 @@ class Channel(object):
def addUser(self, user): def addUser(self, user):
nick = user.lstrip('@%+') nick = user.lstrip('@%+')
while user[0] in '@%+': while user and user[0] in '@%+':
(marker, user) = (user[0], user[1:]) (marker, user) = (user[0], user[1:])
if marker == '@': if marker == '@':
self.ops.add(nick) self.ops.add(nick)