mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +01: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)
|
||||
self.words.setValue(set)
|
||||
irc.replySuccess()
|
||||
add = wrap(add, ['admin', many('something')])
|
||||
add = wrap(add, ['admin', many('somethingWithoutSpaces')])
|
||||
|
||||
@internationalizeDocstring
|
||||
def remove(self, irc, msg, args, words):
|
||||
@ -156,7 +156,7 @@ class BadWords(callbacks.Privmsg):
|
||||
set.discard(word)
|
||||
self.words.setValue(set)
|
||||
irc.replySuccess()
|
||||
remove = wrap(remove, ['admin', many('something')])
|
||||
remove = wrap(remove, ['admin', many('somethingWithoutSpaces')])
|
||||
|
||||
|
||||
Class = BadWords
|
||||
|
Loading…
Reference in New Issue
Block a user