mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
networks.remote: override the login to a valid user, so that permissions can match it
This commit is contained in:
parent
34ad79744a
commit
fb463e3b26
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user