summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/spell.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/data/rbot/plugins/spell.rb b/data/rbot/plugins/spell.rb
index 81ee1ac6..199af3c6 100644
--- a/data/rbot/plugins/spell.rb
+++ b/data/rbot/plugins/spell.rb
@@ -14,18 +14,23 @@ class SpellPlugin < Plugin
p.each_line {|l|
if(l =~ /^\*/)
m.reply "#{m.params} may be spelled correctly"
+ p.close
return
elsif(l =~ /^\s*&.*: (.*)$/)
m.reply "#{m.params}: #$1"
+ p.close
return
elsif(l =~ /^\s*\+ (.*)$/)
m.reply "#{m.params} is presumably derived from " + $1.downcase
+ p.close
return
elsif(l =~ /^\s*#/)
m.reply "#{m.params}: no suggestions"
+ p.close
return
end
}
+ p.close
else
m.reply "couldn't exec ispell :("
return