hooks: xar/xbr: old/new ap

This commit is contained in:
ed 2026-07-27 18:45:35 +00:00
parent 6226858b89
commit c122e103bd
2 changed files with 7 additions and 3 deletions

View file

@ -4735,7 +4735,7 @@ class Up2k(object):
fsize, fsize,
ip, ip,
time.time(), time.time(),
None, [dabs],
) )
t = hr.get("rejectmsg") or "" t = hr.get("rejectmsg") or ""
if t or hr.get("rc") != 0: if t or hr.get("rc") != 0:
@ -4778,7 +4778,7 @@ class Up2k(object):
fsize, fsize,
ip, ip,
time.time(), time.time(),
None, [sabs],
) )
return "k" return "k"
@ -4908,7 +4908,7 @@ class Up2k(object):
fsize, fsize,
ip, ip,
time.time(), time.time(),
None, [sabs],
) )
return "k" return "k"

View file

@ -4226,6 +4226,10 @@ def _runhook(
if src in ("xm", "xban"): if src in ("xm", "xban"):
ja["txt"] = txt[0] ja["txt"] = txt[0]
ja["body"] = txt[1] ja["body"] = txt[1]
elif src == "xbr":
ja["ap_to"] = txt[0]
elif src in ("xar.ln", "xar.mv"):
ja["ap_from"] = txt[0]
else: else:
ja["wark"] = txt[0] # acshually the dwark but less confusing ja["wark"] = txt[0] # acshually the dwark but less confusing
if imp: if imp: