irc: Update IRC code to use simpler suspendable ports system.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 8 Dec 2016 21:43:15 +0000 (15:43 -0600)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Thu, 8 Dec 2016 21:43:15 +0000 (15:43 -0600)
commit66ea38606d0d57f05a4ce49a94c770d17ce31fc3
treefa831a832e25dab7e540828e0f3deb86965dd810
parentd9fdd576a7c1b72999845f86d3cc38a8e6053c49
irc: Update IRC code to use simpler suspendable ports system.

* 8sync/systems/irc.scm (irc-socket-setup): Set port to be non-blocking.
  (install-socket, make-basic-irc-handler): Remove.
  (irc-loop): New procedure; uses the Guile read-line code to switch
  from the former manual-buffering of make-basic-irc-handler to simply
  using Guile's read-line utility.
  (queue-and-start-irc-agenda!): Use irc-loop.
8sync/systems/irc.scm