]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
+ UnknownMessage class
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 12 Apr 2008 23:46:46 +0000 (01:46 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sat, 12 Apr 2008 23:46:46 +0000 (01:46 +0200)
lib/rbot/ircbot.rb
lib/rbot/message.rb

index 18e9e57cea522bfebac1a7c0fe734db117816299..49459a7f3ee75fa198ca1164bbe269801be4be3a 100644 (file)
@@ -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,
index b433bee34ba72a8c014539ea368827fdb378e011..3b2fbc68f54c38efd41199c09d551e2e26640ac3 100644 (file)
@@ -519,4 +519,7 @@ module Irc
   # same as a join, but can have a message too
   class PartMessage < JoinMessage
   end
+
+  class UnknownMessage < BasicUserMessage
+  end
 end