]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
ircbot.rb: ask about current channel modes on join
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 22 Jun 2008 22:42:52 +0000 (00:42 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 22 Jun 2008 23:11:36 +0000 (01:11 +0200)
lib/rbot/ircbot.rb

index 9aef8408276328771219e17cfee1bf53c4a1eace..3cd0cae844d2584a5d8647edba4e309937993fac 100644 (file)
@@ -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?
     }