3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

relay: add missing 'relay.linked' permissions check

This commit is contained in:
James Lu 2016-12-25 00:31:38 -08:00
parent ec13bae7e6
commit 614c029538

View File

@ -1782,6 +1782,8 @@ def linked(irc, source, args):
Returns a list of channels shared across PyLink Relay. If \x02network\x02 is given, filters output to channels linked to the given network."""
permissions.checkPermissions(irc, source, ['relay.linked'])
# Only show remote networks that are marked as connected.
remote_networks = [netname for netname, ircobj in world.networkobjects.copy().items()
if ircobj.connected.is_set()]