summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/spell.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-11-29 22:35:19 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-11-29 22:35:19 +0000
commita8e5661b860bedb20475933d46a0cf3693faf112 (patch)
treea5ca2f07d8abb6cc21d9a2e3629ffbb9c46b0979 /data/rbot/plugins/spell.rb
parentb8577fe1712e36c9a378e4026747575ec46c46da (diff)
fix defunct procs
Diffstat (limited to 'data/rbot/plugins/spell.rb')
-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