From ffc91a26ceab9ac5de8f22f315beb0ea666c33ba Mon Sep 17 00:00:00 2001 From: Julian Marcos Date: Sat, 4 Nov 2023 10:52:58 +0000 Subject: [PATCH] &delete_request allow deleting others req This commit makes it possible for other admins to delete requests easily --- plugins/tildeadmin.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/tildeadmin.py b/plugins/tildeadmin.py index 44ded26..4cf088d 100644 --- a/plugins/tildeadmin.py +++ b/plugins/tildeadmin.py @@ -38,5 +38,8 @@ def tilde_requests_plugin(msg): def delete_tilde_request_plugin(msg): if (msg.nick not in msg.ops and not util.tilde.DEBUG) and (not msg.nick in util.tilde.challenges): return - del util.tilde.challenges[msg.nick] + if msg.arg: + del util.tilde.challenges[msg.arg] + else: + del util.tilde.challenges[msg.nick] return pinhook.plugin.message("Deleted")