summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-04 19:49:01 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-11-04 19:49:01 +0000
commit6388aad7c5640ac3b8cbc5b6f28df76dd47c8f8c (patch)
tree9fb47ae84d1560d43883de5366641ced18f88098
parent4fc8902653b4e083dae6586d5fce234a1854757b (diff)
keywords plugin: inform the user when a keyword couldn't be deleted because it wasn't found
-rw-r--r--data/rbot/plugins/keywords.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index 38a3ff43..d440e6e6 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -445,7 +445,9 @@ class Keywords < Plugin
def keyword_forget(m, key)
if(@keywords.has_key?(key))
@keywords.delete(key)
- @bot.okay m.replyto
+ m.okay
+ else
+ m.reply _("couldn't find keyword %{key}" % { :key => key })
end
end