IRC framework: Server#to_s must always return a String
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 29 Sep 2010 23:37:05 +0000 (01:37 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Wed, 29 Sep 2010 23:37:05 +0000 (01:37 +0200)
commit0442fc1546a2f5ca3bb68e4cdae2e4cd8ae1df45
tree61cdebfbc8be01ca31ef4eb7db93b360327f15ca
parent0457e6c4a61250d6cee1927b5b66095560b389b6
IRC framework: Server#to_s must always return a String

Having Server#to_s alias the hostname would cause problems when the
hostname was nil (e.g. after a disconnect). Fix by making sure that to_s
always returns a string instead.
lib/rbot/irc.rb