summaryrefslogtreecommitdiff
path: root/lib/rbot/ircbot.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-13 01:46:46 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-04-13 01:46:46 +0200
commit410affdb41f01d43498ffe92a12da7979d20053c (patch)
treee833cbca64babf3e25fc974de4759b109aa56a13 /lib/rbot/ircbot.rb
parent26856c6742be2b79524533e7fd2b9cb3a93faa82 (diff)
+ UnknownMessage class
Diffstat (limited to 'lib/rbot/ircbot.rb')
-rw-r--r--lib/rbot/ircbot.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index 18e9e57c..49459a7f 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -691,7 +691,9 @@ class Bot
}
@client[:unknown] = proc { |data|
#debug "UNKNOWN: #{data[:serverstring]}"
+ m = UnknownMessage.new(self, server, server, nil, data[:serverstring])
irclog data[:serverstring], ".unknown"
+ @plugins.delegate "unknown_message", m
}
set_default_send_options :newlines => @config['send.newlines'].to_sym,