mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 03:33:11 +01:00
Fix getSpecific usage
The channel and network arguments were incorrectly swapped
This commit is contained in:
parent
0fccea30ce
commit
7bd68df8aa
@ -155,7 +155,7 @@ class Misc(callbacks.Plugin):
|
||||
return
|
||||
# Now, for normal handling.
|
||||
if conf.supybot.reply.whenNotCommand.getSpecific(
|
||||
channel, irc.network)():
|
||||
irc.network, channel)():
|
||||
if len(tokens) >= 2:
|
||||
cb = irc.getCallback(tokens[0])
|
||||
if cb:
|
||||
@ -179,7 +179,7 @@ class Misc(callbacks.Plugin):
|
||||
if channel != irc.nick else _('private'))
|
||||
if irc.nested:
|
||||
bracketConfig = conf.supybot.commands.nested.brackets
|
||||
brackets = bracketConfig.getSpecific(channel, irc.network)()
|
||||
brackets = bracketConfig.getSpecific(irc.network, channel)()
|
||||
if brackets:
|
||||
(left, right) = brackets
|
||||
irc.reply(left + ' '.join(tokens) + right)
|
||||
|
@ -1188,7 +1188,7 @@ class Banmask(registry.SpaceSeparatedSetOfStrings):
|
||||
bhost = '*'
|
||||
if not options:
|
||||
options = supybot.protocols.irc.banmask.getSpecific(
|
||||
channel, network)()
|
||||
network, channel)()
|
||||
for option in options:
|
||||
if option == 'nick':
|
||||
bnick = nick
|
||||
|
Loading…
Reference in New Issue
Block a user