summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-05-10 23:03:53 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-05-10 23:03:53 +0000
commit7a5fd54f6deb59717cf0de275d285ffe4102ddae (patch)
tree0dbe507191e59e18c1d645c1b6e2087a930daa0f /lib
parent00c5060554ca2546e3462f69a27fca521c0889aa (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')
-rw-r--r--lib/rbot/rfc2812.rb4
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