Changed the default for setValue keyword in setUserValue.

This commit is contained in:
Jeremy Fincher 2004-07-28 06:12:02 +00:00
parent 66bad99eaa
commit 7c71096929
2 changed files with 3 additions and 2 deletions

View File

@ -257,6 +257,7 @@ class Note(callbacks.Privmsg):
if noteid.startswith('get'): if noteid.startswith('get'):
irc.error('The Note.get command has changed to be simply "note".') irc.error('The Note.get command has changed to be simply "note".')
return return
noteid = noteid.lstrip('#') # Some people are just dumb.
try: try:
id = ircdb.users.getUserId(msg.prefix) id = ircdb.users.getUserId(msg.prefix)
except KeyError: except KeyError:
@ -321,7 +322,7 @@ class Note(callbacks.Privmsg):
return return
else: else:
L.add(user) L.add(user)
self.setUserValue('ignores', msg.prefix, L, setValue=True) self.setUserValue('ignores', msg.prefix, L)
irc.replySuccess() irc.replySuccess()
except KeyError: except KeyError:
irc.errorNoUser() irc.errorNoUser()

View File

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