mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Let's not connect multiple times to a network.
This commit is contained in:
parent
c0386751cf
commit
1704fa2cfe
@ -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(':')
|
||||
|
Loading…
Reference in New Issue
Block a user