From 460487856c7f0dc6668f377536d716e116e9d400 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Tue, 28 Nov 2006 22:10:32 +0000 Subject: Minor keywords fix --- data/rbot/plugins/keywords.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data') 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+/, "")) -- cgit v1.2.3