3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +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:
return
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():
remoteirc = utils.networkobjects[netname]
# HACK: Don't break on sending to @#channel or similar.
@ -644,7 +647,7 @@ def removeChannel(irc, channel):
try:
remoteirc = utils.networkobjects[remotenet]
except KeyError:
pass
continue
else:
rc = remoteirc.channels[remotechan]
for user in remoteirc.channels[remotechan].users.copy():