summaryrefslogtreecommitdiff
path: root/irc/session.go (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Explicitly support keys in JOIN messagesHubert Hirtz2021-05-201-3/+6
|
* Fix races conditionsHubert Hirtz2021-05-201-0/+878
Refactor: - Split out reads/writes from irc.Session to irc.ChanInOut, - Message handling is now manual, messages must be passed to irc.Session.HandleMessage for its state to change, - Remove data-race-prone App.addLineNow (called from both the main eventLoop and irc loops) and add App.addStatusLine (to be called from the main event loop) and App.queueStatusLine (to be called from other goroutines). These two functions now write to both the current buffer and the home buffer, - add a irc.Typings.List function that locks the list of typings before accessing it. Changes as I went through the whole code... - CAP handling is fixed (especially CAP DEL and CAP ACK), - irc.Session now handles PREFIX, - unhandled messages are now shown, except for some rare cases where it's completely useless to show them.