summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-15 01:48:33 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-15 01:48:33 +0200
commitf23cb29ddf2ff1d2f959086571249da52cee0c7d (patch)
treead3bdb7d3a255fbacc22d6b747d050ad1c730da6 /lib
parentfcda5169000a33c237bb6b0ed28afcf29a674ffd (diff)
ircbot.rb: fix some IRC log refactoring issues
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircbot.rb5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index d95eb18d..8767531d 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -575,8 +575,7 @@ class Bot
@client[:notice] = proc { |data|
message = NoticeMessage.new(self, server, data[:source], data[:target], data[:message])
# pass it off to plugins that want to hear everything
- @plugins.delegate "listen", message
- @plugins.delegate "notice", message
+ @plugins.irc_delegate "notice", message
}
@client[:motd] = proc { |data|
m = MotdMessage.new(self, server, data[:source], data[:target], data[:motd])
@@ -999,7 +998,7 @@ class Bot
debug "Sending quit message"
@socket.emergency_puts "QUIT :#{message}"
debug "Logging quits"
- delegate_sent('QUIT', @bot.myself, message)
+ delegate_sent('QUIT', myself, message)
debug "Flushing socket"
@socket.flush
rescue SocketError => e