mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Made join/part network-specific.
This commit is contained in:
parent
7f5a12a893
commit
c0254f87d8
@ -159,7 +159,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
||||
if not irc.isChannel(channel):
|
||||
irc.errorInvalid('channel', channel)
|
||||
return
|
||||
conf.supybot.channels().add(original)
|
||||
conf.supybot.networks.get(irc.network).channels().add(original)
|
||||
maxchannels = irc.state.supported.get('maxchannels', sys.maxint)
|
||||
if len(irc.state.channels) + len(channels) > maxchannels:
|
||||
irc.error('I\'m already too close to maximum number of '
|
||||
@ -260,7 +260,8 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
||||
return
|
||||
for chan in channels:
|
||||
try:
|
||||
conf.supybot.channels.removeChannel(chan)
|
||||
network = conf.supybot.networks.get(irc.network)
|
||||
network.channels.removeChannel(chan)
|
||||
except KeyError:
|
||||
pass # It might be in the network thingy.
|
||||
try:
|
||||
|
Loading…
Reference in New Issue
Block a user