From 0ffe08c3ac5c40ad7dd9e3f7534b3bc3d6a358be Mon Sep 17 00:00:00 2001 From: Sacha Chua Date: Sun, 6 Nov 2022 08:45:08 -0500 Subject: add deopall --- emacsconf-erc.el | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacsconf-erc.el') diff --git a/emacsconf-erc.el b/emacsconf-erc.el index 60292f3..5791987 100644 --- a/emacsconf-erc.el +++ b/emacsconf-erc.el @@ -315,6 +315,12 @@ If MESSAGE is not specified, reset the topic to the template." (erc-cmd-OP nick) (erc-cmd-OPME)))) +(defun erc-cmd-DEOPALL (&optional nick) + (emacsconf-erc-with-channels (mapcar 'car emacsconf-topic-templates) + (if nick + (erc-cmd-DEOP nick) + (erc-cmd-DEOPME)))) + (defun erc-cmd-BROADCAST (&rest message) "Say MESSAGE in all the emacsconference channels." (emacsconf-erc-with-channels (mapcar 'car emacsconf-topic-templates) -- cgit v1.2.3