From d16831478623014b396a98618f9109372c7531ba Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Tue, 16 Dec 2003 04:21:28 +0000 Subject: [PATCH] Added a little better checking to the spell command. --- plugins/Unix.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Unix.py b/plugins/Unix.py index fbdf044a9..095ed9742 100644 --- a/plugins/Unix.py +++ b/plugins/Unix.py @@ -174,6 +174,10 @@ class Unix(callbacks.Privmsg): for the spelling of . """ # 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) if word and not word[0].isalpha(): irc.error(msg, ' must begin with an alphabet character.')