Here’s a simple new command, /sv. With it, you can boast about
your IRC client. It shows how you can use rcirc-define-command to
define new commands.
We’re waiting for the definition of this command until rcirc is loaded
because rcirc-define-command is not yet available, and without
rcirc loaded, the command wouldn’t do us much good anyway.
(with-eval-after-load 'rcirc
(rcirc-define-command sv ()
"Boast about rcirc."
(interactive "i")
(rcirc-send-message process target "I use " rcirc-id-string)))