summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-11-28 22:10:32 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-11-28 22:10:32 +0000
commit460487856c7f0dc6668f377536d716e116e9d400 (patch)
treef8fbc5b96a4997a3202fd08f9a05838cf8f86c45
parent870301e1cfcfec36f3763d1def9a4475de963fb2 (diff)
Minor keywords fix
-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+/, ""))