mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +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>.
|
||||
"""
|
||||
# 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, '<word> must begin with an alphabet character.')
|
||||
|
Loading…
Reference in New Issue
Block a user