mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 19:52:54 +01:00
Variable name change.
This commit is contained in:
parent
16b9fb386e
commit
356745d353
@ -182,7 +182,7 @@ def getInt(irc, msg, args, default=None, type='integer'):
|
|||||||
def getId(irc, msg, args):
|
def getId(irc, msg, args):
|
||||||
getInt(irc, msg, args, type='id')
|
getInt(irc, msg, args, type='id')
|
||||||
|
|
||||||
def channelDb(irc, msg, args, **kwargs):
|
def getChannelDb(irc, msg, args, **kwargs):
|
||||||
if not conf.supybot.databases.plugins.channelSpecific():
|
if not conf.supybot.databases.plugins.channelSpecific():
|
||||||
return None
|
return None
|
||||||
else:
|
else:
|
||||||
@ -251,7 +251,7 @@ def getNick(irc, msg, args):
|
|||||||
else:
|
else:
|
||||||
irc.errorInvalid('nick', s, Raise=True)
|
irc.errorInvalid('nick', s, Raise=True)
|
||||||
|
|
||||||
def channel(irc, msg, args, cap=None):
|
def getChannel(irc, msg, args, cap=None):
|
||||||
if ircutils.isChannel(args[0]):
|
if ircutils.isChannel(args[0]):
|
||||||
channel = args.pop(0)
|
channel = args.pop(0)
|
||||||
elif ircutils.isChannel(msg.args[0]):
|
elif ircutils.isChannel(msg.args[0]):
|
||||||
@ -288,11 +288,11 @@ argWrappers = ircutils.IrcDict({
|
|||||||
'id': getId,
|
'id': getId,
|
||||||
'int': getInt,
|
'int': getInt,
|
||||||
'nick': getNick,
|
'nick': getNick,
|
||||||
'channel': channel,
|
'channel': getChannel,
|
||||||
'plugin': getPlugin,
|
'plugin': getPlugin,
|
||||||
'lowered': getLowered,
|
'lowered': getLowered,
|
||||||
'something': getSomething,
|
'something': getSomething,
|
||||||
'channelDb': channelDb,
|
'channelDb': getChannelDb,
|
||||||
'hostmask': getHostmask,
|
'hostmask': getHostmask,
|
||||||
'user': getUser,
|
'user': getUser,
|
||||||
'otherUser': getOtherUser,
|
'otherUser': getOtherUser,
|
||||||
|
Loading…
Reference in New Issue
Block a user