This commit is contained in:
Jeremy Fincher 2004-08-25 23:19:07 +00:00
parent 5f5e79135f
commit 86b49eccb2

View File

@ -217,6 +217,7 @@ class ChannelState(object):
return return
while user and user[0] in '@%+': while user and user[0] in '@%+':
(marker, user) = (user[0], user[1:]) (marker, user) = (user[0], user[1:])
assert user, 'Looks like my caller is passing chars, not nicks.'
if marker == '@': if marker == '@':
self.ops.add(nick) self.ops.add(nick)
elif marker == '%': elif marker == '%':
@ -366,7 +367,7 @@ class IrcState(IrcCommandDispatcher):
if channel not in self.channels: if channel not in self.channels:
self.channels[channel] = Channel() self.channels[channel] = Channel()
c = self.channels[channel] c = self.channels[channel]
for name in names: for name in names.split():
c.addUser(name) c.addUser(name)
if type == '@': if type == '@':
c.modes['s'] = None c.modes['s'] = None