- commit
- 0a92938
- parent
- 66129ed
- author
- Antonio Mika
- date
- 2023-11-17 14:50:32 +0000 UTC
Don't send notifications when self
1 files changed,
+2,
-2
+2,
-2
1@@ -61,13 +61,13 @@ index 552104e..4b2ffe6 100644
2 Urgency: urgency,
3 RecordSize: 2048,
4 diff --git a/upstream.go b/upstream.go
5-index ca56a82..8ff0a55 100644
6+index 95bad3a..afbe314 100644
7 --- a/upstream.go
8 +++ b/upstream.go
9 @@ -682,6 +682,7 @@ func (uc *upstreamConn) handleMessage(ctx context.Context, msg *irc.Message) err
10 }
11
12- if highlight || directMessage {
13+ if !self && (highlight || directMessage) {
14 + msg.Tags["bouncerNetwork"] = strconv.FormatInt(uc.network.ID, 10)
15 go uc.network.broadcastWebPush(msg)
16 if timestamp, err := time.Parse(xirc.ServerTimeLayout, string(msg.Tags["time"])); err == nil {