mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Added a little better checking to the spell command.
This commit is contained in:
parent
6a674609f4
commit
d168314786
@ -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.')
|
||||||
|
Loading…
Reference in New Issue
Block a user