Fixed a few more metacharacter DoS bugs.

This commit is contained in:
Daniel DiPaolo 2003-11-08 03:16:24 +00:00
parent e5249c859d
commit 4711e227f4

View File

@ -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: