all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: William Cummings <will@wpc.io>
To: emacs-devel@gnu.org
Subject: ircv3 support in rcirc
Date: Mon, 20 Jun 2016 15:28:48 -0700	[thread overview]
Message-ID: <1466461728.3605741.643445049.59252300@webmail.messagingengine.com> (raw)

Hey all,

I've been hacking up rcirc.el to support the ircv3 [1] server-time
capability. I use this to get nice backlogs from ZNC [2] :) Right now I
just have a hacked up copy of rcirc.el in my dotemacs. I'm starting to
think about how to extend rcirc to support ircv3 capabilities, so that
my code could be a cleaner extension of rcirc. Is this a patch that
would be welcome?

Here's how I imagine this working:

* v3 extensions can be implemented in separate features, for ex.
rcirc-server-time
* rcirc has a list holding a list of capabilities it will request, the
feature will append the capabilities it would like to request
* rcirc sends CAP REQ for each requested feature upon connection
* when rcirc receives a CAP ACK message, it dispatches this to the
appropriate functions/hooks, for ex rcirc-CAP-ACK-server-time or
rcirc-cap-ack-received-hook
  rcirc could maintain its own list of ack'd capabs, and hooks could do
  something like (rcirc-with-capability "server-time" ...) which would
  only execute if the capab has been ack'd by the server

* when present message tags will be parsed and provided to callbacks and
hooks
* maybe a on-connect hook? i need this to req backlog after connection
but doesnt necessarily relate to the rest here

Something along these lines would allow me (and others) to implement a
v3 extension w/o overriding functions in rcirc. Any thoughts about this
approach?

[1] http://ircv3.net/irc/
[2] http://wiki.znc.in/Playback



                 reply	other threads:[~2016-06-20 22:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1466461728.3605741.643445049.59252300@webmail.messagingengine.com \
    --to=will@wpc.io \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.