mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
For some reason, when I searched for do353 earlier, it didn't come up. Now it turns out that it should've...who knows.
This commit is contained in:
parent
7cb54def63
commit
5f5e79135f
@ -362,14 +362,13 @@ class IrcState(IrcCommandDispatcher):
|
||||
|
||||
def do353(self, irc, msg):
|
||||
# NAMES reply.
|
||||
channel = msg.args[2]
|
||||
names = msg.args[-1].split()
|
||||
(_, type, channel, names) = msg.args
|
||||
if channel not in self.channels:
|
||||
self.channels[channel] = Channel()
|
||||
c = self.channels[channel]
|
||||
for name in names:
|
||||
c.addUser(name)
|
||||
if msg.args[1] == '@':
|
||||
if type == '@':
|
||||
c.modes['s'] = None
|
||||
|
||||
def doJoin(self, irc, msg):
|
||||
@ -420,13 +419,6 @@ class IrcState(IrcCommandDispatcher):
|
||||
elif mode[0] == '-' and mode[1] not in 'ovh':
|
||||
chan.unsetMode(modeChar)
|
||||
|
||||
def do353(self, irc, msg):
|
||||
(_, _, channel, users) = msg.args
|
||||
chan = self.channels[channel]
|
||||
users = users.split()
|
||||
for user in users:
|
||||
chan.addUser(user)
|
||||
|
||||
def doPart(self, irc, msg):
|
||||
for channel in msg.args[0].split(','):
|
||||
chan = self.channels[channel]
|
||||
|
Loading…
Reference in New Issue
Block a user