mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Changed the default for setValue keyword in setUserValue.
This commit is contained in:
parent
66bad99eaa
commit
7c71096929
@ -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()
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user