From 7a5fd54f6deb59717cf0de275d285ffe4102ddae Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 10 May 2007 23:03:53 +0000 Subject: Be slightly less anal about non-RFC-compliant MOTD, and issue a warning instead of causing an error further down --- lib/rbot/rfc2812.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/rbot/rfc2812.rb b/lib/rbot/rfc2812.rb index 5174203f..a66ff440 100644 --- a/lib/rbot/rfc2812.rb +++ b/lib/rbot/rfc2812.rb @@ -1099,8 +1099,10 @@ module Irc # " :- 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 -- cgit v1.2.3