]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Be slightly less anal about non-RFC-compliant MOTD, and issue a warning instead of...
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 10 May 2007 23:03:53 +0000 (23:03 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Thu, 10 May 2007 23:03:53 +0000 (23:03 +0000)
lib/rbot/rfc2812.rb

index 5174203f590fd901384c82b4219e70058735f4c6..a66ff440d217090cb325ba96b9bb645357dddcd1 100644 (file)
@@ -1099,8 +1099,10 @@ module Irc
           # "<nick> :- <server> Message of the Day -"
           if argv[1] =~ /^-\s+(\S+)\s/
             server = $1
-            @motd = ""
+          else
+            warning "Server doesn't have an RFC compliant MOTD start."
           end
+          @motd = ""
         when RPL_MOTD
           if(argv[1] =~ /^-\s+(.*)$/)
             @motd << $1