Added a little better checking to the spell command.

This commit is contained in:
Jeremy Fincher 2003-12-16 04:21:28 +00:00
parent 6a674609f4
commit d168314786

View File

@ -174,6 +174,10 @@ class Unix(callbacks.Privmsg):
for the spelling of <word>. for the spelling of <word>.
""" """
# We are only checking the first word # We are only checking the first word
if not self.spellCmd:
irc.error(msg, 'A spell checking command doesn't seem to be '
'installed on this computer.')
return
word = privmsgs.getArgs(args) word = privmsgs.getArgs(args)
if word and not word[0].isalpha(): if word and not word[0].isalpha():
irc.error(msg, '<word> must begin with an alphabet character.') irc.error(msg, '<word> must begin with an alphabet character.')