diff options
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/keywords.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/keywords.rb b/lib/rbot/keywords.rb index 5de5a14a..8065e8b8 100644 --- a/lib/rbot/keywords.rb +++ b/lib/rbot/keywords.rb @@ -215,6 +215,7 @@ module Irc # lookup keyword +key+, return it or nil def [](key) + return nil if key.nil? debug "keywords module: looking up key #{key}" if(@keywords.has_key?(key)) return Keyword.restore(@keywords[key]) |