From f17a96a21a233945ea425c51176446abbb5c388a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 4 Nov 2007 20:02:18 +0000 Subject: keywords plugin: simpler forget code --- data/rbot/plugins/keywords.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'data') 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 }) -- cgit v1.2.3