mirror of https://github.com/Mikaela/Limnoria.git
Made setUserValue argument order consistent with userValue argument order.
This commit is contained in:
parent
87d8d60e2e
commit
2b506b2fc7
|
@ -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()
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue