diff --git a/plugins/global.py b/plugins/global.py index ac36831..67326ed 100644 --- a/plugins/global.py +++ b/plugins/global.py @@ -13,8 +13,9 @@ def g(irc, source, args): message = " ".join(args) message = message + " (sent by %s@%s)" % (irc.getFriendlyName(irc.called_by), irc.getFullNetworkName()) for name, ircd in world.networkobjects.items(): - for channel in ircd.pseudoclient.channels: - ircd.msg(channel, message) + if ircd.connected.is_set(): # Only attempt to send to connected networks + for channel in ircd.pseudoclient.channels: + ircd.msg(channel, message) utils.add_cmd(g, "global", featured=True)