From b88ff26942fedfa441e31413c4436e5bf5474545 Mon Sep 17 00:00:00 2001 From: James Lu Date: Wed, 26 Nov 2014 18:27:25 -0800 Subject: [PATCH] Network: don't allow '.' in network names (Closes #874) Network: fix typo --- plugins/Network/plugin.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/Network/plugin.py b/plugins/Network/plugin.py index 62d6b5b99..1747f731d 100644 --- a/plugins/Network/plugin.py +++ b/plugins/Network/plugin.py @@ -62,6 +62,10 @@ class Network(callbacks.Plugin): provided, it will be sent to the server in a PASS command. If --ssl is provided, an SSL connection will be attempted. """ + if '.' in network: + irc.error("Network names cannot have a '.' in them. " + "Remember, this is the network name, not the actual " + "server you plan to connect to.", Raise=True) try: otherIrc = self._getIrc(network) irc.error(_('I\'m already connected to %s.') % network)