Skip to content

Commit

Permalink
fix #1826
Browse files Browse the repository at this point in the history
CS PURGE should send a snomask
  • Loading branch information
slingamn committed Nov 30, 2021
1 parent c515694 commit ee720f6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions irc/chanserv.go
Original file line number Diff line number Diff line change
Expand Up @@ -681,6 +681,7 @@ func csPurgeAddHandler(service *ircService, client *Client, params []string, ope
}
}
service.Notice(rb, fmt.Sprintf(client.t("Successfully purged channel %s from the server"), chname))
client.server.snomasks.Send(sno.LocalChannels, fmt.Sprintf("Operator %s purged channel %s [reason: %s]", operName, chname, reason))
case errInvalidChannelName:
service.Notice(rb, fmt.Sprintf(client.t("Can't purge invalid channel %s"), chname))
default:
Expand All @@ -698,6 +699,7 @@ func csPurgeDelHandler(service *ircService, client *Client, params []string, ope
switch client.server.channels.Unpurge(chname) {
case nil:
service.Notice(rb, fmt.Sprintf(client.t("Successfully unpurged channel %s from the server"), chname))
client.server.snomasks.Send(sno.LocalChannels, fmt.Sprintf("Operator %s removed purge of channel %s", operName, chname))
case errNoSuchChannel:
service.Notice(rb, fmt.Sprintf(client.t("Channel %s wasn't previously purged from the server"), chname))
default:
Expand Down

0 comments on commit ee720f6

Please sign in to comment.