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'):
|
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()
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user