mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-08 03:59:23 +01:00
Fixed a few more metacharacter DoS bugs.
This commit is contained in:
parent
e5249c859d
commit
4711e227f4
@ -170,7 +170,7 @@ class Unix(callbacks.Privmsg):
|
|||||||
"""
|
"""
|
||||||
# We are only checking the first word
|
# We are only checking the first word
|
||||||
word = privmsgs.getArgs(args)
|
word = privmsgs.getArgs(args)
|
||||||
if word and word[0] in '*&@+-~#!%^':
|
if word and word[0] in '.?*&@+-~#!%^':
|
||||||
irc.error(msg, 'Initial spell metacharacters aren\'t allowed.')
|
irc.error(msg, 'Initial spell metacharacters aren\'t allowed.')
|
||||||
return
|
return
|
||||||
if ' ' in word:
|
if ' ' in word:
|
||||||
|
Loading…
Reference in New Issue
Block a user