summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-23 00:42:52 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-06-23 01:11:36 +0200
commit7c0c7d49240c56124ba0d99a14f6d7156317c499 (patch)
tree6a0599c414fbda9e3a2f3773810906c2a2afbdfb
parent3dd9db1a0e819a0b325476bdde24cbebd29bf548 (diff)
ircbot.rb: ask about current channel modes on join
-rw-r--r--lib/rbot/ircbot.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 9aef8408..3cd0cae8 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -671,6 +671,7 @@ class Bot
}
@client[:join] = proc {|data|
m = JoinMessage.new(self, server, data[:source], data[:channel], data[:message])
+ sendq("MODE #{data[:channel]}", nil, 0) if m.address?
@plugins.irc_delegate("join", m)
sendq("WHO #{data[:channel]}", data[:channel], 2) if m.address?
}