From 6388aad7c5640ac3b8cbc5b6f28df76dd47c8f8c Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 4 Nov 2007 19:49:01 +0000 Subject: keywords plugin: inform the user when a keyword couldn't be deleted because it wasn't found --- data/rbot/plugins/keywords.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3