irc: Refactor using (8sync contrib irc) library from Snuik.
authorJanneke Nieuwenhuizen <janneke@gnu.org>
Sun, 13 Aug 2023 09:18:12 +0000 (11:18 +0200)
committerJanneke Nieuwenhuizen <janneke@gnu.org>
Thu, 17 Aug 2023 13:58:26 +0000 (15:58 +0200)
commita82db588459534f845e0c64fcac6d289b3c01a03
tree7131511358466391b2dff94e795f19048255f58e
parent396e5c62c13c5cec6adf982a36aee4c2b7c1a8e0
irc: Refactor using (8sync contrib irc) library from Snuik.

Switch to new IRC library while retaining 0.4.2 api compatibility.

* 8sync/systems/irc.scm: Rewrite using low level irc functions
from (8sync contrib irc).
(irc-socket-setup): Remove,
(<irc-bot>): Update to use %irc:default-port.  Add dispatch-message
handler.
(irc-bot-init): Refactor using irc:listen, irc:user, irc:nick.
(irc-bot-main-loop): Dispatch to...
(dispatch-message): ...this new message handler.
(handle-message): New overridable handler.  Invoke legacy
handle-misc-input and handle-line handlers for PRIVMSG.
8sync/systems/irc.scm