summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-19 20:45:41 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-19 20:45:41 +0000
commitb323de1cef5edcb7dc48989061221c5ca98f9c3a (patch)
treef6caf9009ecd82aaf8bdcb5dc917f64fef4d6e44
parent3623ada6d5b3bb0e0f986ab7d6811d5b0ff70e62 (diff)
core: only WHO on join if it's the bot itself joining a channel
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 3b42a3aa..1e12ddcc 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -622,7 +622,7 @@ class Bot
@plugins.delegate("listen", m)
@plugins.delegate("join", m)
- sendq "WHO #{data[:channel]}", data[:channel], 2
+ sendq("WHO #{data[:channel]}", data[:channel], 2) if m.address?
}
@client[:part] = proc {|data|
m = PartMessage.new(self, server, data[:source], data[:channel], data[:message])