[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: /ame source

From: Emanuel Berg
Subject: Re: /ame source
Date: Fri, 05 Jan 2024 01:46:01 +0100
User-agent: Gnus/5.13 (Gnus v5.13)

Okay, here [source last] is the new /ame or erc-cmd-AME which
is now channel global on the current server, but not on
all servers.

`erc-cmd-AMSG' can be modified in the same way, by
adding `erc-server-process' as the first argument to
`erc-with-all-buffers-of-server' - line 3919, file
/usr/local/share/emacs/30.0.50/lisp/erc/erc.el - version

GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, cairo version 1.16.0)
of 2023-12-17 [commit

ERC 5.6-git (IRC client for GNU Emacs 30.0.50)

;;; -*- lexical-binding: t -*-
;; this file:
;;   https://dataswamp.org/~incal/emacs-init/erc/erc-misc.el

(require 'erc)

(defun erc-cmd-AME (line)
  "Send LINE as an action to all channels on the current network.
\nWarning: Use of this function is considered spamming;
         it is included for testing purposes only.
\nAlso see /amsg, `erc-cmd-AMSG'."
  (interactive "sSend action to all channels on this network: ")
  (erc-with-all-buffers-of-server erc-server-process
    (lambda () (erc-channel-p (erc-default-target)))
    (erc-cmd-ME line) ))
(put 'erc-cmd-AME 'do-not-parse-args t)

underground experts united

reply via email to

[Prev in Thread] Current Thread [Next in Thread]