diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-03 15:49:30 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-11-03 15:49:30 +0000 |
commit | 2541e09611bfb631c1d0859e117ef237aa264704 (patch) | |
tree | d6db48edc6de2a2db5c09cc835aba217159e4156 /data/rbot | |
parent | 1bcbfa8301814272232c9c3746e1d037608c90bb (diff) |
keywords plugin: don't break if forget, tell and/or learn were registered by another plugin (e.g. factoids)
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/keywords.rb | 6 |
1 files 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 |