3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-26 13:59:44 +01:00

Merge pull request #960 from slingamn/issue959

fix #959
This commit is contained in:
Shivaram Lingamneni 2020-04-24 00:49:31 -07:00 committed by GitHub
commit cae739fd2e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1284,6 +1284,8 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
} }
} }
// #959: don't save STATUSMSG
if minPrefixMode == modes.Mode(0) {
channel.AddHistoryItem(history.Item{ channel.AddHistoryItem(history.Item{
Type: histType, Type: histType,
Message: message, Message: message,
@ -1291,6 +1293,7 @@ func (channel *Channel) SendSplitMessage(command string, minPrefixMode modes.Mod
AccountName: account, AccountName: account,
Tags: clientOnlyTags, Tags: clientOnlyTags,
}) })
}
} }
func (channel *Channel) applyModeToMember(client *Client, change modes.ModeChange, rb *ResponseBuffer) (applied bool, result modes.ModeChange) { func (channel *Channel) applyModeToMember(client *Client, change modes.ModeChange, rb *ResponseBuffer) (applied bool, result modes.ModeChange) {