From c5c4032d51e76c9e39fb0f1df0b50d4b394dadf8 Mon Sep 17 00:00:00 2001 From: Dmitry Kim Date: Mon, 19 Mar 2007 15:05:50 +0000 Subject: * duh, operator precedence error in serverlist patch --- lib/rbot/ircsocket.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot/ircsocket.rb') diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index e3586b70..b825a768 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -331,7 +331,7 @@ module Irc return end srv_uri = @server_list[@conn_count % @server_list.size].dup - srv_uri = 'irc://' + srv_uri if !srv_uri =~ /:\/\// + srv_uri = 'irc://' + srv_uri if !(srv_uri =~ /:\/\//) @conn_count += 1 @server_uri = URI.parse(srv_uri) @server_uri.port = 6667 if !@server_uri.port -- cgit v1.2.3