mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Bugz0r.
This commit is contained in:
parent
5f5e79135f
commit
86b49eccb2
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user