summaryrefslogtreecommitdiff
path: root/data/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-04 20:02:18 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-04 20:02:18 +0000
commitf17a96a21a233945ea425c51176446abbb5c388a (patch)
tree155a55110c01f5169c0f12347c2d1ddf30c682c2 /data/rbot
parent6388aad7c5640ac3b8cbc5b6f28df76dd47c8f8c (diff)
keywords plugin: simpler forget code
Diffstat (limited to 'data/rbot')
-rw-r--r--data/rbot/plugins/keywords.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index d440e6e6..3cf19599 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -443,8 +443,7 @@ class Keywords < Plugin
# forget one of the dynamic keywords
def keyword_forget(m, key)
- if(@keywords.has_key?(key))
- @keywords.delete(key)
+ if @keywords.delete(key)
m.okay
else
m.reply _("couldn't find keyword %{key}" % { :key => key })