diff --git a/plugins/Network.py b/plugins/Network.py index 0761902e2..002d187a5 100644 --- a/plugins/Network.py +++ b/plugins/Network.py @@ -132,6 +132,9 @@ class Network(callbacks.Privmsg): on. """ network = self._getNetwork(irc, args) + if args: + irc.error('I\'m not connected to %s.' % privmsgs.getArgs(args)) + return badIrc = self._getIrc(network) try: badIrc.driver.reconnect() @@ -292,6 +295,9 @@ class Network(callbacks.Privmsg): apply. """ network = self._getNetwork(irc, args) + if args: + irc.error('I\'m not connected to %s.' % privmsgs.getArgs(args)) + return otherIrc = self._getIrc(network) otherIrc.queueMsg(ircmsgs.ping('Latency check (from %s).' % msg.nick)) self._latency[otherIrc] = (irc, time.time())