diff options
| author | Philip Kaludercic | 2021-06-09 18:44:55 +0200 |
|---|---|---|
| committer | Philip Kaludercic | 2021-06-10 17:22:58 +0200 |
| commit | c300326fa01cb9532e0399047a1ebdede5e2f65d (patch) | |
| tree | 3c888ceb15b6556f390724515deea8168aff4983 | |
| parent | 567e288eb9e89c768ff7ed6de256319007432ef7 (diff) | |
| download | emacs-c300326fa01cb9532e0399047a1ebdede5e2f65d.tar.gz emacs-c300326fa01cb9532e0399047a1ebdede5e2f65d.zip | |
Add TAGMSG handler
* rcirc.el (rcirc-handler-TAGMSG): Add new message handler
| -rw-r--r-- | lisp/net/rcirc.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 12e1fc3b2e4..60cafd4dada 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -3322,6 +3322,14 @@ is the process object for the current connection." | |||
| 3322 | ;; All requested capabilities have been responded to | 3322 | ;; All requested capabilities have been responded to |
| 3323 | (rcirc-send-string process "CAP" "END")))) | 3323 | (rcirc-send-string process "CAP" "END")))) |
| 3324 | 3324 | ||
| 3325 | (defun rcirc-handler-TAGMSG (process sender _args _text) | ||
| 3326 | "Handle a empty tag message from SENDER. | ||
| 3327 | PROCESS is the process object for the current connection." | ||
| 3328 | (dolist (tag rcirc-message-tags) | ||
| 3329 | (when-let ((handler (intern-soft (concat "rcirc-tag-handler-" (car tag)))) | ||
| 3330 | ((fboundp handler))) | ||
| 3331 | (funcall handler process sender (cdr tag))))) | ||
| 3332 | |||
| 3325 | (defun rcirc-handler-BATCH (process _sender args _text) | 3333 | (defun rcirc-handler-BATCH (process _sender args _text) |
| 3326 | "Open or close a batch. | 3334 | "Open or close a batch. |
| 3327 | ARGS should have the form (tag type . parameters) when starting a | 3335 | ARGS should have the form (tag type . parameters) when starting a |