summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-13 01:30:34 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-13 01:31:33 +0200
commit5509b8844473382646304fa699048de4551f5773 (patch)
tree7f515130a46fc67521dc6cd3a5621e5f0999f595 /lib/rbot/ircbot.rb
parentae22d3ad34c7626d52a5b0473b025d064f38c045 (diff)
rfc2812: parse User mode changes, even though they aren't handled yet
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 0286ed1b..a22d1772 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -638,9 +638,9 @@ class Bot
@plugins.irc_delegate("quit", m)
}
@client[:mode] = proc {|data|
- m = ModeChangeMessage.new(self, server, data[:source], data[:channel], data[:modestring])
+ m = ModeChangeMessage.new(self, server, data[:source], data[:target], data[:modestring])
m.modes = data[:modes]
- irclog "@ Mode #{data[:modestring]} by #{data[:source]}", data[:channel]
+ irclog "@ Mode #{data[:modestring]} by #{data[:source]}", data[:target]
@plugins.delegate "modechange", m
}
@client[:join] = proc {|data|