diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-05-10 23:03:53 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-05-10 23:03:53 +0000 |
commit | 7a5fd54f6deb59717cf0de275d285ffe4102ddae (patch) | |
tree | 0dbe507191e59e18c1d645c1b6e2087a930daa0f /lib/rbot | |
parent | 00c5060554ca2546e3462f69a27fca521c0889aa (diff) |
Be slightly less anal about non-RFC-compliant MOTD, and issue a warning instead of causing an error further down
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/rfc2812.rb | 4 |
1 files changed, 3 insertions, 1 deletions
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 # "<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 |