From 1704fa2cfec5db3a7f084d8c3941bd31ac1e1488 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 23 Aug 2004 12:38:33 +0000 Subject: [PATCH] Let's not connect multiple times to a network. --- src/Owner.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Owner.py b/src/Owner.py index f9f2de0f3..2d04dbe49 100644 --- a/src/Owner.py +++ b/src/Owner.py @@ -748,6 +748,9 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg): defaults to 6667, the default port for IRC. """ (network, server) = privmsgs.getArgs(args, optional=1) + for otherIrc in world.ircs: + if otherIrc.network == network: + irc.error('I\'m already connected to %s.' % network,Raise=True) if server: if ':' in server: (server, port) = server.split(':')