summaryrefslogtreecommitdiff
path: root/lib/rbot/keywords.rb
diff options
context:
space:
mode:
authorTom Gilbert <tom@linuxbrit.co.uk>2005-08-31 20:39:19 +0000
committerTom Gilbert <tom@linuxbrit.co.uk>2005-08-31 20:39:19 +0000
commit70b4d72c18d092bf14c982a28e860321f947755c (patch)
treef7427015f8b55c3fbd28d4a3be7f388bf5d7b0f8 /lib/rbot/keywords.rb
parentbf85fc8d462037b072af0616d8a26d267614a205 (diff)
a little more robustness around emtpy lookups
Also more robustness around reading/writing conf.yaml
Diffstat (limited to 'lib/rbot/keywords.rb')
-rw-r--r--lib/rbot/keywords.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/keywords.rb b/lib/rbot/keywords.rb
index 8065e8b8..cc91155c 100644
--- a/lib/rbot/keywords.rb
+++ b/lib/rbot/keywords.rb
@@ -250,6 +250,7 @@ module Irc
#
# handle a message asking about a keyword
def keyword(m, key, dunno=true)
+ return if key.nil?
unless(kw = self[key])
m.reply @bot.lang.get("dunno") if (dunno)
return