mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-23 19:19:31 +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.
|
||||
remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid
|
||||
|
||||
# Set PyLink's identification to admin.
|
||||
remoteirc.pseudoclient.account = "<PyLink networks.remote override>"
|
||||
# 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)
|
||||
|
Loading…
Reference in New Issue
Block a user