mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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
|
return
|
||||||
else:
|
else:
|
||||||
L.add(user)
|
L.add(user)
|
||||||
self.setUserValue(msg.prefix, 'ignores', L, setValue=True)
|
self.setUserValue('ignores', msg.prefix, L, setValue=True)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
except KeyError:
|
except KeyError:
|
||||||
irc.errorNoUser()
|
irc.errorNoUser()
|
||||||
|
@ -99,7 +99,7 @@ class Weather(callbacks.Privmsg):
|
|||||||
args = [s]
|
args = [s]
|
||||||
else:
|
else:
|
||||||
location = privmsgs.getArgs(args)
|
location = privmsgs.getArgs(args)
|
||||||
self.setUserValue(msg.prefix, 'lastLocation',
|
self.setUserValue('lastLocation', msg.prefix,
|
||||||
location, ignoreNoUser=True)
|
location, ignoreNoUser=True)
|
||||||
realCommandName = self.registryValue('command', channel)
|
realCommandName = self.registryValue('command', channel)
|
||||||
realCommand = getattr(self, realCommandName)
|
realCommand = getattr(self, realCommandName)
|
||||||
|
@ -837,7 +837,7 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
group = group.get(name)
|
group = group.get(name)
|
||||||
return group.get(id)()
|
return group.get(id)()
|
||||||
|
|
||||||
def setUserValue(self, prefixOrName, name, value,
|
def setUserValue(self, name, prefixOrName, value,
|
||||||
ignoreNoUser=True, setValue=False):
|
ignoreNoUser=True, setValue=False):
|
||||||
try:
|
try:
|
||||||
id = str(ircdb.users.getUserId(prefixOrName))
|
id = str(ircdb.users.getUserId(prefixOrName))
|
||||||
|
Loading…
Reference in New Issue
Block a user