mirror of
https://github.com/9001/copyparty.git
synced 2026-09-25 21:10:18 +01:00
hooks: xar/xbr: old/new ap
This commit is contained in:
+3
-3
@@ -4735,7 +4735,7 @@ class Up2k(object):
|
||||
fsize,
|
||||
ip,
|
||||
time.time(),
|
||||
None,
|
||||
[dabs],
|
||||
)
|
||||
t = hr.get("rejectmsg") or ""
|
||||
if t or hr.get("rc") != 0:
|
||||
@@ -4778,7 +4778,7 @@ class Up2k(object):
|
||||
fsize,
|
||||
ip,
|
||||
time.time(),
|
||||
None,
|
||||
[sabs],
|
||||
)
|
||||
|
||||
return "k"
|
||||
@@ -4908,7 +4908,7 @@ class Up2k(object):
|
||||
fsize,
|
||||
ip,
|
||||
time.time(),
|
||||
None,
|
||||
[sabs],
|
||||
)
|
||||
|
||||
return "k"
|
||||
|
||||
@@ -4226,6 +4226,10 @@ def _runhook(
|
||||
if src in ("xm", "xban"):
|
||||
ja["txt"] = txt[0]
|
||||
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:
|
||||
ja["wark"] = txt[0] # acshually the dwark but less confusing
|
||||
if imp:
|
||||
|
||||
Reference in New Issue
Block a user