mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
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,8 +99,8 @@ class Weather(callbacks.Privmsg):
|
||||
args = [s]
|
||||
else:
|
||||
location = privmsgs.getArgs(args)
|
||||
self.setUserValue(msg.prefix, 'lastLocation',
|
||||
location, ignoreNoUser=True)
|
||||
self.setUserValue('lastLocation', msg.prefix,
|
||||
location, ignoreNoUser=True)
|
||||
realCommandName = self.registryValue('command', channel)
|
||||
realCommand = getattr(self, realCommandName)
|
||||
realCommand(irc, msg, args)
|
||||
|
@ -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
Block a user