mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 14:10:41 +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):
|
def do353(self, irc, msg):
|
||||||
# NAMES reply.
|
# NAMES reply.
|
||||||
channel = msg.args[2]
|
(_, type, channel, names) = msg.args
|
||||||
names = msg.args[-1].split()
|
|
||||||
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:
|
||||||
c.addUser(name)
|
c.addUser(name)
|
||||||
if msg.args[1] == '@':
|
if type == '@':
|
||||||
c.modes['s'] = None
|
c.modes['s'] = None
|
||||||
|
|
||||||
def doJoin(self, irc, msg):
|
def doJoin(self, irc, msg):
|
||||||
@ -420,13 +419,6 @@ class IrcState(IrcCommandDispatcher):
|
|||||||
elif mode[0] == '-' and mode[1] not in 'ovh':
|
elif mode[0] == '-' and mode[1] not in 'ovh':
|
||||||
chan.unsetMode(modeChar)
|
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):
|
def doPart(self, irc, msg):
|
||||||
for channel in msg.args[0].split(','):
|
for channel in msg.args[0].split(','):
|
||||||
chan = self.channels[channel]
|
chan = self.channels[channel]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user