From 2541e09611bfb631c1d0859e117ef237aa264704 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 3 Nov 2007 15:49:30 +0000 Subject: keywords plugin: don't break if forget, tell and/or learn were registered by another plugin (e.g. factoids) --- data/rbot/plugins/keywords.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb index c2054e3b..5daff9f6 100644 --- a/data/rbot/plugins/keywords.rb +++ b/data/rbot/plugins/keywords.rb @@ -496,7 +496,7 @@ end plugin = Keywords.new plugin.register 'keyword' -plugin.register 'forget' -plugin.register 'tell' -plugin.register 'learn' +plugin.register 'forget' rescue nil +plugin.register 'tell' rescue nil +plugin.register 'learn' rescue nil -- cgit v1.2.3