mirror of
https://github.com/progval/Limnoria.git
synced 2025-04-26 04:51:06 -05:00
BadWords: disallow adding words with a space in them.
Deserialization splits on spaces, so they are not preserved properly.
This commit is contained in:
parent
97016b9c55
commit
f3f628ddba
@ -143,7 +143,7 @@ class BadWords(callbacks.Privmsg):
|
|||||||
set.update(words)
|
set.update(words)
|
||||||
self.words.setValue(set)
|
self.words.setValue(set)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
add = wrap(add, ['admin', many('something')])
|
add = wrap(add, ['admin', many('somethingWithoutSpaces')])
|
||||||
|
|
||||||
@internationalizeDocstring
|
@internationalizeDocstring
|
||||||
def remove(self, irc, msg, args, words):
|
def remove(self, irc, msg, args, words):
|
||||||
@ -156,7 +156,7 @@ class BadWords(callbacks.Privmsg):
|
|||||||
set.discard(word)
|
set.discard(word)
|
||||||
self.words.setValue(set)
|
self.words.setValue(set)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
remove = wrap(remove, ['admin', many('something')])
|
remove = wrap(remove, ['admin', many('somethingWithoutSpaces')])
|
||||||
|
|
||||||
|
|
||||||
Class = BadWords
|
Class = BadWords
|
||||||
|
Loading…
x
Reference in New Issue
Block a user