# # ChangeLog for trunk/downstream.go in code # # Generated by Trac 1.6 # Jun 9, 2025, 12:00:35 AM Fri, 27 Mar 2020 18:17:58 GMT contact [168] * trunk/downstream.go (modified) * trunk/user.go (modified) Nuke user.lock Split user.register into two functions, one to make ... Fri, 27 Mar 2020 16:55:03 GMT contact [167] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/user.go (modified) Add eventDownstreamDisconnected This should remove the need for ... Fri, 27 Mar 2020 16:21:05 GMT contact [166] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/user.go (modified) Add eventDownstreamConnected In a later commit, we'll be able to ... Fri, 27 Mar 2020 15:33:19 GMT contact [165] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) * trunk/user.go (modified) Introduce a user.events channel This allows to easily add new ... Fri, 27 Mar 2020 08:40:51 GMT delthas [164] * trunk/downstream.go (modified) Add downstream NOTICE support Thu, 26 Mar 2020 21:43:48 GMT delthas [163] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add downstream INVITE support Thu, 26 Mar 2020 21:33:44 GMT delthas [162] * trunk/downstream.go (modified) * trunk/irc.go (modified) * trunk/upstream.go (modified) Add upstream RPL_CREATIONTIME support Thu, 26 Mar 2020 21:27:46 GMT delthas [160] * trunk/bridge.go (modified) * trunk/downstream.go (modified) Add downstream TOPIC support Wed, 25 Mar 2020 23:15:26 GMT delthas [159] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add KICK support Downstream and upstream message handling are ... Wed, 25 Mar 2020 23:12:53 GMT delthas [158] * trunk/downstream.go (modified) Simplify error handling for downstream JOIN/PART ... Wed, 25 Mar 2020 22:21:14 GMT delthas [156] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Route NAMES, WHO, WHOIS replies to the requesting downstream Using ... Wed, 25 Mar 2020 22:17:46 GMT delthas [154] * trunk/downstream.go (modified) * trunk/server.go (modified) Add a server-unique id to each downstream Adding a simple uint64 id ... Wed, 25 Mar 2020 10:54:08 GMT contact [146] * trunk/db.go (modified) * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add support for channel keys Wed, 25 Mar 2020 10:32:44 GMT contact [145] * trunk/downstream.go (modified) Handle downstream JOIN/PART with multiple channel names Closes: ... Wed, 25 Mar 2020 10:28:25 GMT contact [144] * trunk/downstream.go (modified) * trunk/user.go (modified) Consume ring buffer for networks added on-the-fly Wed, 25 Mar 2020 09:53:08 GMT contact [143] * trunk/downstream.go (modified) * trunk/upstream.go (modified) * trunk/user.go (modified) Move upstreamConn.ring to network This handles upstream ... Wed, 25 Mar 2020 08:51:22 GMT delthas [142] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add downstream self WHO and WHOIS support Wed, 25 Mar 2020 08:48:00 GMT delthas [141] * trunk/downstream.go (modified) Add user hostname to downstream user prefix Wed, 25 Mar 2020 08:47:26 GMT delthas [140] * trunk/bridge.go (modified) * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add downstream NAMES support NAMES reply for channels currently ... Wed, 25 Mar 2020 08:40:08 GMT delthas [139] * trunk/bridge.go (modified) * trunk/downstream.go (modified) * trunk/irc.go (modified) * trunk/upstream.go (modified) Add MODE arguments support - Add RPL_ISUPPORT support with ... Mon, 23 Mar 2020 15:05:00 GMT contact [137] * trunk/downstream.go (modified) * trunk/user.go (modified) Add user.{add,remove}Downstream Sat, 21 Mar 2020 09:24:38 GMT contact [136] * trunk/downstream.go (modified) * trunk/user.go (modified) Add network.upstream helper Sat, 21 Mar 2020 07:44:03 GMT contact [135] * trunk/downstream.go (modified) Fix typo Sat, 21 Mar 2020 07:41:14 GMT contact [134] * trunk/downstream.go (modified) Fix empty SASL challenge message We were sending an empty string. ... Fri, 20 Mar 2020 21:53:05 GMT contact [132] * trunk/bridge.go (modified) * trunk/downstream.go (modified) Avoid sending JOIN twice for the same channel Fri, 20 Mar 2020 21:48:17 GMT contact [131] * trunk/downstream.go (modified) * trunk/upstream.go (modified) * trunk/user.go (modified) Move upstreamConn.history to network Fri, 20 Mar 2020 09:42:17 GMT contact [130] * trunk/README.md (modified) * trunk/downstream.go (modified) Fix deadlocks in single-upstream mode Fri, 20 Mar 2020 09:11:27 GMT delthas [129] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Fix MODE downstream support - Fix replies without client as first ... Fri, 20 Mar 2020 09:11:27 GMT delthas [128] * trunk/downstream.go (modified) * trunk/irc.go (modified) * trunk/upstream.go (modified) Add WHOIS support Thu, 19 Mar 2020 23:29:03 GMT delthas [127] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add WHO support Thu, 19 Mar 2020 13:51:45 GMT contact [125] * trunk/downstream.go (modified) * trunk/go.mod (modified) * trunk/go.sum (modified) * trunk/irc.go (modified) * trunk/upstream.go (modified) Remove some IRCv3 constants go-irc v3.1.2 adds some missing IRCv3 ... Thu, 19 Mar 2020 13:44:49 GMT contact [124] * trunk/downstream.go (modified) Fix history name dc.username contains the raw account username, not ... Thu, 19 Mar 2020 00:14:44 GMT delthas [120] * trunk/downstream.go (modified) * trunk/service.go (modified) * trunk/user.go (modified) Add create-network bouncer service command Wed, 18 Mar 2020 23:06:48 GMT delthas [119] * trunk/downstream.go (modified) * trunk/user.go (modified) Add suffixing for multi-upstream connections Wed, 18 Mar 2020 11:23:08 GMT contact [117] * trunk/downstream.go (modified) * trunk/go.mod (modified) * trunk/go.sum (modified) * trunk/service.go (added) * trunk/upstream.go (modified) Add basic infrastructure for bouncer service Tue, 17 Mar 2020 15:17:39 GMT contact [114] * trunk/downstream.go (modified) Fix typo Tue, 17 Mar 2020 15:15:54 GMT contact [113] * trunk/downstream.go (modified) Fix echo PRIVMSG messages Mon, 16 Mar 2020 15:16:27 GMT contact [112] * trunk/downstream.go (modified) Add downstream SASL support Mon, 16 Mar 2020 14:12:46 GMT contact [111] * trunk/downstream.go (modified) Allow CAP command when registered Mon, 16 Mar 2020 14:10:16 GMT contact [110] * trunk/downstream.go (modified) Log downstream messages before registration Mon, 16 Mar 2020 14:08:56 GMT contact [109] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Protect upstreamConn.history with a lock Mon, 16 Mar 2020 14:05:24 GMT contact [108] * trunk/downstream.go (modified) * trunk/irc.go (modified) Add CAP support for downstream connections Mon, 16 Mar 2020 13:32:38 GMT contact [107] * trunk/downstream.go (modified) Don't reply to PING when client is unregistered Mon, 16 Mar 2020 13:30:49 GMT contact [106] * trunk/downstream.go (modified) Make downstreamConn.runUntilegistered exit with an error on EOF Mon, 16 Mar 2020 13:28:45 GMT contact [105] * trunk/downstream.go (modified) Echo downstream PRIVMSGs to other downstream connections Mon, 16 Mar 2020 13:05:48 GMT contact [104] * trunk/downstream.go (modified) Rename consumption to ringMessage Mon, 16 Mar 2020 11:44:59 GMT contact [103] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) * trunk/user.go (modified) Per-user dispatcher goroutine This allows message handlers to read ... Mon, 16 Mar 2020 10:26:54 GMT contact [102] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Rename messages channels to outgoing Mon, 16 Mar 2020 08:32:18 GMT contact [100] * trunk/README.md (modified) * trunk/downstream.go (modified) Strip client & network name from username Fri, 13 Mar 2020 17:13:03 GMT contact [98] * trunk/README.md (modified) * trunk/bridge.go (modified) * trunk/cmd/jounce/main.go (deleted) * trunk/cmd/jouncectl/main.go (deleted) * trunk/cmd/soju (added) * trunk/cmd/soju/main.go (added) * trunk/cmd/sojuctl (added) * trunk/cmd/sojuctl/main.go (added) * trunk/config/config.go (modified) * trunk/db.go (modified) * trunk/downstream.go (modified) * trunk/go.mod (modified) * trunk/irc.go (modified) * trunk/ring.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Rename project to soju Fri, 13 Mar 2020 14:12:44 GMT contact [95] * trunk/db.go (modified) * trunk/downstream.go (modified) * trunk/go.mod (modified) * trunk/go.sum (modified) * trunk/irc.go (modified) * trunk/schema.sql (modified) * trunk/upstream.go (modified) Add support for SASL authentication We now store SASL credentials ... Fri, 13 Mar 2020 11:06:02 GMT contact [93] * trunk/db.go (modified) * trunk/downstream.go (modified) * trunk/schema.sql (modified) * trunk/upstream.go (modified) Add support for upstream PASS command Thu, 12 Mar 2020 20:28:09 GMT contact [91] * trunk/README.md (modified) * trunk/downstream.go (modified) * trunk/server.go (modified) Auto-save IRC networks Thu, 12 Mar 2020 18:17:06 GMT contact [90] * trunk/db.go (modified) * trunk/downstream.go (modified) * trunk/server.go (modified) Store NICK changes in the DB Thu, 12 Mar 2020 17:33:03 GMT contact [89] * trunk/db.go (modified) * trunk/downstream.go (modified) Update DB on JOIN and PART Thu, 12 Mar 2020 17:21:41 GMT contact [88] * trunk/downstream.go (modified) Fix nil dereference when network is specified in username Wed, 11 Mar 2020 18:09:32 GMT contact [85] * trunk/db.go (modified) * trunk/downstream.go (modified) Add support for PASS to downstream Wed, 04 Mar 2020 17:22:58 GMT contact [77] * trunk/cmd/jounce/main.go (modified) * trunk/config/config.go (modified) * trunk/db.go (added) * trunk/downstream.go (modified) * trunk/go.mod (modified) * trunk/go.sum (modified) * trunk/schema.sql (added) * trunk/server.go (modified) * trunk/upstream.go (modified) Add SQLite database Closes: https://todo.sr.ht/~emersion/jounce/9 Wed, 04 Mar 2020 15:02:45 GMT contact [76] * trunk/downstream.go (modified) Rename network to upstreamName Wed, 04 Mar 2020 15:00:19 GMT contact [75] * trunk/downstream.go (modified) * trunk/server.go (modified) Remove unused user.getChannel, move getUpstream to user Wed, 04 Mar 2020 14:44:13 GMT contact [73] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Allow clients to specify an upstream name in their username Tue, 03 Mar 2020 14:33:21 GMT contact [72] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Remove upstream prefix for outgoing MODE and PRIVMSG We shouldn't ... Wed, 19 Feb 2020 17:25:19 GMT contact [69] * trunk/bridge.go (modified) * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add functions to translate between upstream and downstream names Tue, 18 Feb 2020 19:40:32 GMT contact [68] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Fix PING handlers, again Tue, 18 Feb 2020 16:07:58 GMT contact [66] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Properly handle PING messages Tue, 18 Feb 2020 15:31:18 GMT contact [64] * trunk/cmd/jounce/main.go (modified) * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Add a -debug flag Tue, 18 Feb 2020 14:08:06 GMT contact [63] * trunk/downstream.go (modified) Fix panic when closing downstream connection Mon, 17 Feb 2020 15:17:31 GMT contact [60] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Add upstreamConn.SendMessage Allows us to change upstreamConn ... Mon, 17 Feb 2020 15:09:35 GMT contact [59] * trunk/downstream.go (modified) * trunk/ring.go (modified) Document Ring Mon, 17 Feb 2020 14:56:18 GMT contact [58] * trunk/downstream.go (modified) Forward PRIVMSG coming from downstream Mon, 17 Feb 2020 14:46:29 GMT contact [57] * trunk/downstream.go (modified) * trunk/ring.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Fix issues related to Ring - RingConsumer is now used directly in ... Mon, 17 Feb 2020 11:41:27 GMT contact [56] * trunk/downstream.go (modified) Add downstreamConn.writeMessages This logic will become more ... Mon, 17 Feb 2020 11:36:42 GMT contact [55] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Abbreviate {upstream,downstream}Conn with uc and dc This makes it ... Mon, 17 Feb 2020 11:27:48 GMT contact [54] * trunk/bridge.go (modified) * trunk/downstream.go (modified) * trunk/upstream.go (modified) Don't write to downstreamConn.messages directly Use a helper ... Fri, 07 Feb 2020 16:35:57 GMT contact [51] * trunk/downstream.go (modified) * trunk/ring.go (modified) Add names to consumers Fri, 07 Feb 2020 15:43:54 GMT contact [50] * trunk/downstream.go (modified) * trunk/ring.go (added) * trunk/server.go (modified) * trunk/upstream.go (modified) Add an in-memory ring buffer References: ... Fri, 07 Feb 2020 12:36:32 GMT contact [49] * trunk/downstream.go (modified) * trunk/server.go (modified) Handle downstream PART messages Fri, 07 Feb 2020 12:31:09 GMT contact [48] * trunk/downstream.go (modified) Handle downstream JOIN messages Fri, 07 Feb 2020 12:23:09 GMT contact [47] * trunk/downstream.go (modified) Send fake RPL_CREATED message Fri, 07 Feb 2020 12:08:27 GMT contact [46] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Handle downstream MODE messages Fri, 07 Feb 2020 11:42:24 GMT contact [45] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Close connection from writer goroutine Connections were being ... Fri, 07 Feb 2020 11:36:02 GMT contact [43] * trunk/downstream.go (modified) * trunk/irc.go (modified) * trunk/upstream.go (modified) Add parseMessageParams helper Fri, 07 Feb 2020 11:19:42 GMT contact [42] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Allow changing nickname Fri, 07 Feb 2020 10:56:36 GMT contact [40] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Add user.forEachDownstream Fri, 07 Feb 2020 10:46:44 GMT contact [39] * trunk/downstream.go (modified) * trunk/server.go (modified) Add user.forEachUpstream Fri, 07 Feb 2020 10:39:56 GMT contact [38] * trunk/downstream.go (modified) * trunk/server.go (modified) Add Server.getUser Fri, 07 Feb 2020 10:36:42 GMT contact [37] * trunk/cmd/jounce/main.go (modified) * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Per-user connections Thu, 06 Feb 2020 21:35:24 GMT contact [31] * trunk/downstream.go (modified) Remove downstreamConn.WriteMessage It wasn't clear what this ... Thu, 06 Feb 2020 21:29:24 GMT contact [30] * trunk/downstream.go (modified) Send channel info to downstream on registration Thu, 06 Feb 2020 21:22:14 GMT contact [28] * trunk/downstream.go (modified) De-duplicate downstream QUIT handling Thu, 06 Feb 2020 21:19:31 GMT contact [27] * trunk/downstream.go (modified) * trunk/upstream.go (modified) Forward channel information Thu, 06 Feb 2020 20:52:04 GMT contact [26] * trunk/downstream.go (modified) Write to downstream conn in dedicated goroutine Thu, 06 Feb 2020 20:20:22 GMT contact [23] * trunk/downstream.go (modified) * trunk/server.go (modified) * trunk/upstream.go (modified) Allow Server to have access to upstreamConn Thu, 06 Feb 2020 20:11:35 GMT contact [22] * trunk/downstream.go (modified) * trunk/server.go (modified) Maintain a list of downstream connections Thu, 06 Feb 2020 15:50:47 GMT contact [15] * trunk/downstream.go (modified) Send standard user/channel modes to downstream connections Thu, 06 Feb 2020 15:18:19 GMT contact [13] * trunk/downstream.go (added) * trunk/server.go (modified) * trunk/upstream.go (added) Split downstram and upstream code into separate files