3
0
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:
James Lu 2017-05-12 19:58:03 -07:00
parent cfec70730f
commit a5b3011ea4

View File

@ -100,10 +100,14 @@ def remote(irc, source, args):
# Force remoteirc.called_in to something private in order to prevent
# accidental information leakage from replies.
try:
remoteirc.called_in = remoteirc.called_by = remoteirc.pseudoclient.uid
# Set the identification override to the caller's account.
remoteirc.pseudoclient.account = irc.users[source].account
except:
REMOTE_IN_USE.clear()
raise
def _remote_reply(placeholder_self, text, **kwargs):
"""