summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 3d20b71d..0286ed1b 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -638,7 +638,10 @@ class Bot
@plugins.irc_delegate("quit", m)
}
@client[:mode] = proc {|data|
+ m = ModeChangeMessage.new(self, server, data[:source], data[:channel], data[:modestring])
+ m.modes = data[:modes]
irclog "@ Mode #{data[:modestring]} by #{data[:source]}", data[:channel]
+ @plugins.delegate "modechange", m
}
@client[:join] = proc {|data|
m = JoinMessage.new(self, server, data[:source], data[:channel], data[:message])