Show an IRC listener user what their session sends from other clients (closes #179)
check / check (push) Waiting to run
check / check (push) Waiting to run
The relay dropped every PRIVMSG, NOTICE, JOIN, PART, NICK, QUIT, TOPIC, MODE and KICK sent under the connection's own nick, so an IRC listener connection never saw what its session did from another client. The relay now drops nothing by nick. Instead, the service methods that fan out a user's own command take the client whose queue to skip: the IRC listener passes its own client, which has already written the echo, and the HTTP API passes 0. Channel messages and PARTs now also go to the sender's own session, so the HTTP handler no longer queues the channel-message echo itself and SendChannelMessage no longer returns the message's row ID. Model: opus-5-5
This commit is contained in:
@@ -2905,7 +2905,7 @@ func (tserver *testServer) queueMessage(
|
||||
return fmt.Errorf("insert message: %w", err)
|
||||
}
|
||||
|
||||
err = tserver.database.EnqueueToSession(ctx, sessionID, msgID)
|
||||
err = tserver.database.EnqueueToSession(ctx, sessionID, msgID, 0)
|
||||
if err != nil {
|
||||
return fmt.Errorf("enqueue: %w", err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user