summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/keywords.rb
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins/keywords.rb')
-rw-r--r--data/rbot/plugins/keywords.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/keywords.rb b/data/rbot/plugins/keywords.rb
index 69f35337..7aa5b974 100644
--- a/data/rbot/plugins/keywords.rb
+++ b/data/rbot/plugins/keywords.rb
@@ -283,6 +283,7 @@ class Keywords < Plugin
# like "foo is bar" or "foo is also qux"
def keyword_command(m, lhs, mhs, rhs, quiet = false)
debug "got keyword command #{lhs}, #{mhs}, #{rhs}"
+ return if lhs.strip.empty?
also = true if(rhs.gsub!(/^also\s+/, ""))