summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/ircsocket.rb2
1 files changed, 1 insertions, 1 deletions
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