From fb463e3b2639b1f564815ae7fd8a4cb874dadfde Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 9 Dec 2016 21:53:54 -0800 Subject: [PATCH] networks.remote: override the login to a valid user, so that permissions can match it --- plugins/networks.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/networks.py b/plugins/networks.py index 21bdc07..02cb05a 100644 --- a/plugins/networks.py +++ b/plugins/networks.py @@ -74,8 +74,8 @@ def remote(irc, source, args): # accidental information leakage from replies. remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid - # Set PyLink's identification to admin. - remoteirc.pseudoclient.account = "" + # Set the identification override to the caller's account. + remoteirc.pseudoclient.account = irc.users[source].account try: # Remotely call the command (use the PyLink client as a dummy user). remoteirc.callCommand(remoteirc.pseudoclient.uid, cmd_args)