Made setUserValue argument order consistent with userValue argument order.

This commit is contained in:
Jeremy Fincher 2004-07-20 07:34:22 +00:00
parent 87d8d60e2e
commit 2b506b2fc7
3 changed files with 4 additions and 4 deletions

View File

@ -321,7 +321,7 @@ class Note(callbacks.Privmsg):
return
else:
L.add(user)
self.setUserValue(msg.prefix, 'ignores', L, setValue=True)
self.setUserValue('ignores', msg.prefix, L, setValue=True)
irc.replySuccess()
except KeyError:
irc.errorNoUser()

View File

@ -99,7 +99,7 @@ class Weather(callbacks.Privmsg):
args = [s]
else:
location = privmsgs.getArgs(args)
self.setUserValue(msg.prefix, 'lastLocation',
self.setUserValue('lastLocation', msg.prefix,
location, ignoreNoUser=True)
realCommandName = self.registryValue('command', channel)
realCommand = getattr(self, realCommandName)

View File

@ -837,7 +837,7 @@ class Privmsg(irclib.IrcCallback):
group = group.get(name)
return group.get(id)()
def setUserValue(self, prefixOrName, name, value,
def setUserValue(self, name, prefixOrName, value,
ignoreNoUser=True, setValue=False):
try:
id = str(ircdb.users.getUserId(prefixOrName))