3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 23:09:23 +01:00
This commit is contained in:
James Lu 2015-07-21 20:13:43 -07:00
parent e2738e3909
commit a04bce99c1

View File

@ -286,6 +286,9 @@ def handle_privmsg(irc, numeric, command, args):
if target == irc.pseudoclient.uid: if target == irc.pseudoclient.uid:
return return
sent = 0 sent = 0
relay = findRelay((irc.name, target))
if utils.isChannel(target) and relay and not db[relay]['links']:
return
for netname, user in relayusers[(irc.name, numeric)].items(): for netname, user in relayusers[(irc.name, numeric)].items():
remoteirc = utils.networkobjects[netname] remoteirc = utils.networkobjects[netname]
# HACK: Don't break on sending to @#channel or similar. # HACK: Don't break on sending to @#channel or similar.
@ -644,7 +647,7 @@ def removeChannel(irc, channel):
try: try:
remoteirc = utils.networkobjects[remotenet] remoteirc = utils.networkobjects[remotenet]
except KeyError: except KeyError:
pass continue
else: else:
rc = remoteirc.channels[remotechan] rc = remoteirc.channels[remotechan]
for user in remoteirc.channels[remotechan].users.copy(): for user in remoteirc.channels[remotechan].users.copy():