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 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()

View File

@ -99,8 +99,8 @@ 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)
realCommand(irc, msg, args) realCommand(irc, msg, args)

View File

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