Skip to content

Commit

Permalink
Don't send notifications when self
Browse files Browse the repository at this point in the history
  • Loading branch information
antoniomika committed Nov 17, 2023
1 parent 66129ed commit 0a92938
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bouncer/subscriber-change.diff
Original file line number Diff line number Diff line change
Expand Up @@ -61,13 +61,13 @@ index 552104e..4b2ffe6 100644
Urgency: urgency,
RecordSize: 2048,
diff --git a/upstream.go b/upstream.go
index ca56a82..8ff0a55 100644
index 95bad3a..afbe314 100644
--- a/upstream.go
+++ b/upstream.go
@@ -682,6 +682,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
}

if highlight || directMessage {
if !self && (highlight || directMessage) {
+ msg.Tags["bouncerNetwork"] = strconv.FormatInt(uc.network.ID, 10)
go uc.network.broadcastWebPush(msg)
if timestamp, err := time.Parse(xirc.ServerTimeLayout, string(msg.Tags["time"])); err == nil {
Expand Down

0 comments on commit 0a92938

Please sign in to comment.