mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
networks: clear the 'remote command used' state and break if overriding account/reply target fails
This commit is contained in:
parent
cfec70730f
commit
a5b3011ea4
@ -100,10 +100,14 @@ def remote(irc, source, args):
|
|||||||
|
|
||||||
# Force remoteirc.called_in to something private in order to prevent
|
# Force remoteirc.called_in to something private in order to prevent
|
||||||
# accidental information leakage from replies.
|
# accidental information leakage from replies.
|
||||||
|
try:
|
||||||
remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid
|
remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid
|
||||||
|
|
||||||
# Set the identification override to the caller's account.
|
# Set the identification override to the caller's account.
|
||||||
remoteirc.pseudoclient.account = irc.users[source].account
|
remoteirc.pseudoclient.account = irc.users[source].account
|
||||||
|
except:
|
||||||
|
REMOTE_IN_USE.clear()
|
||||||
|
raise
|
||||||
|
|
||||||
def _remote_reply(placeholder_self, text, **kwargs):
|
def _remote_reply(placeholder_self, text, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user