diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-13 00:53:56 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-04-13 00:53:56 +0200 |
commit | 1239f5f80ecae2353d78491dbbf873b801bdab7d (patch) | |
tree | 5a5bf7876345456df1e5bad7248884b7a718d574 /lib/rbot/ircbot.rb | |
parent | 1f7b45bcfa05821884ba47d4e42608c8f9b5a6b1 (diff) |
+ ModeChangeMessage class
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r-- | lib/rbot/ircbot.rb | 3 |
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]) |