mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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):
|
if not irc.isChannel(channel):
|
||||||
irc.errorInvalid('channel', channel)
|
irc.errorInvalid('channel', channel)
|
||||||
return
|
return
|
||||||
conf.supybot.channels().add(original)
|
conf.supybot.networks.get(irc.network).channels().add(original)
|
||||||
maxchannels = irc.state.supported.get('maxchannels', sys.maxint)
|
maxchannels = irc.state.supported.get('maxchannels', sys.maxint)
|
||||||
if len(irc.state.channels) + len(channels) > maxchannels:
|
if len(irc.state.channels) + len(channels) > maxchannels:
|
||||||
irc.error('I\'m already too close to maximum number of '
|
irc.error('I\'m already too close to maximum number of '
|
||||||
@ -260,7 +260,8 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
|
|||||||
return
|
return
|
||||||
for chan in channels:
|
for chan in channels:
|
||||||
try:
|
try:
|
||||||
conf.supybot.channels.removeChannel(chan)
|
network = conf.supybot.networks.get(irc.network)
|
||||||
|
network.channels.removeChannel(chan)
|
||||||
except KeyError:
|
except KeyError:
|
||||||
pass # It might be in the network thingy.
|
pass # It might be in the network thingy.
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user