X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=data%2Frbot%2Fplugins%2Fspell.rb;h=199af3c64c1c98313a4ebaec830c7274685cdf10;hb=386274dd8f83d4aac27e837f1dca11f0f9250ee8;hp=81ee1ac6553f5b3f88e303a932a3220c551faa1a;hpb=21949774b91eaec6ecde4eaa8ad121e2c0a36b87;p=user%2Fhenk%2Fcode%2Fruby%2Frbot.git 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