From a8e5661b860bedb20475933d46a0cf3693faf112 Mon Sep 17 00:00:00 2001 From: Tom Gilbert Date: Tue, 29 Nov 2005 22:35:19 +0000 Subject: fix defunct procs --- data/rbot/plugins/spell.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'data/rbot') 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 -- cgit v1.2.3