summaryrefslogtreecommitdiffstats
path: root/emacsconf-erc.el
diff options
context:
space:
mode:
authorSacha Chua <sacha@sachachua.com>2022-11-06 08:45:08 -0500
committerSacha Chua <sacha@sachachua.com>2022-11-06 08:45:08 -0500
commit0ffe08c3ac5c40ad7dd9e3f7534b3bc3d6a358be (patch)
tree619f7a7680f1d793b4d54b7d16190e01c98e5f51 /emacsconf-erc.el
parent548973ef194aa710e476d03ac8b8bdab19242eca (diff)
downloademacsconf-el-0ffe08c3ac5c40ad7dd9e3f7534b3bc3d6a358be.tar.xz
emacsconf-el-0ffe08c3ac5c40ad7dd9e3f7534b3bc3d6a358be.zip
add deopall
Diffstat (limited to 'emacsconf-erc.el')
-rw-r--r--emacsconf-erc.el6
1 files changed, 6 insertions, 0 deletions
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)