3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

networks.remote: override the login to a valid user, so that permissions can match it

This commit is contained in:
James Lu 2016-12-09 21:53:54 -08:00
parent 34ad79744a
commit fb463e3b26

View File

@ -74,8 +74,8 @@ def remote(irc, source, args):
# accidental information leakage from replies. # accidental information leakage from replies.
remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid
# Set PyLink's identification to admin. # Set the identification override to the caller's account.
remoteirc.pseudoclient.account = "<PyLink networks.remote override>" remoteirc.pseudoclient.account = irc.users[source].account
try: # Remotely call the command (use the PyLink client as a dummy user). try: # Remotely call the command (use the PyLink client as a dummy user).
remoteirc.callCommand(remoteirc.pseudoclient.uid, cmd_args) remoteirc.callCommand(remoteirc.pseudoclient.uid, cmd_args)