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

View File

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