From 4722f8a96c652651fc80d5c4011e20d7d99281ca Mon Sep 17 00:00:00 2001 From: Shivaram Lingamneni Date: Fri, 24 Apr 2020 01:33:21 -0400 Subject: [PATCH] fix #959 --- irc/channel.go | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/irc/channel.go b/irc/channel.go index c9adaf09..c18eddc7 100644 --- a/irc/channel.go +++ b/irc/channel.go @@ -1284,13 +1284,16 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod } } - channel.AddHistoryItem(history.Item{ - Type: histType, - Message: message, - Nick: nickmask, - AccountName: account, - Tags: clientOnlyTags, - }) + // #959: don't save STATUSMSG + if minPrefixMode == modes.Mode(0) { + channel.AddHistoryItem(history.Item{ + Type: histType, + Message: message, + Nick: nickmask, + AccountName: account, + Tags: clientOnlyTags, + }) + } } func (channel *Channel) applyModeToMember(client *Client, change modes.ModeChange, rb *ResponseBuffer) (applied bool, result modes.ModeChange) {