summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
Diffstat (limited to 'data')
-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 })