don't use recent_servers if list from irc is available
authorThomasV <thomasv@gitorious>
Thu, 13 Mar 2014 18:23:26 +0000 (19:23 +0100)
committerThomasV <thomasv@gitorious>
Thu, 13 Mar 2014 18:23:26 +0000 (19:23 +0100)
lib/network.py

index 5a17b4d..ca145e2 100644 (file)
@@ -182,11 +182,14 @@ class Network(threading.Thread):
 
 
     def get_servers(self):
-        out = self.irc_servers if self.irc_servers else DEFAULT_SERVERS
-        for s in self.recent_servers:
-            host, port, protocol = s.split(':')
-            if host not in out:
-                out[host] = { protocol:port }
+        if self.irc_servers:
+            out = self.irc_servers  
+        else:
+            out = DEFAULT_SERVERS
+            for s in self.recent_servers:
+                host, port, protocol = s.split(':')
+                if host not in out:
+                    out[host] = { protocol:port }
         return out
 
     def start_interface(self, server):