Variable name change.

This commit is contained in:
Jeremy Fincher 2004-09-22 22:43:23 +00:00
parent 16b9fb386e
commit 356745d353
1 changed files with 4 additions and 4 deletions

View File

@ -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,