summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-14 12:05:29 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-07-14 12:05:29 +0200
commit63a0599d92b453c025ce3e0ea133b7f6c1af6b7a (patch)
tree5c6728eade71b991ab5fcc6144e3093080797df4
parent9a1cf6a11b12c06cd925dd6a789ec98fe750c8ad (diff)
plugins.rb: commands were being delegated even from ignored messages
-rw-r--r--lib/rbot/plugins.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb
index a6d1f543..aefc036c 100644
--- a/lib/rbot/plugins.rb
+++ b/lib/rbot/plugins.rb
@@ -943,7 +943,7 @@ module Plugins
if method.to_sym == :privmsg
delegate('ctcp_listen', m) if m.ctcp
delegate('message', m)
- privmsg(m) if m.address?
+ privmsg(m) if m.address? and not m.ignored?
delegate('unreplied', m) unless m.replied
else
delegate(method, m)