mirror of
https://github.com/ergochat/ergo.git
synced 2025-04-03 22:38:16 +02:00
fix #2213
We intended to suppress 324 and 329 when there is no valid mode change, only unknown modes. Fix these checks.
This commit is contained in:
parent
07669f9eb4
commit
8fa6e19c2e
@ -1859,7 +1859,7 @@ func cmodeHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respon
|
||||
for _, char := range unknown {
|
||||
rb.Add(nil, server.name, ERR_UNKNOWNMODE, client.nick, string(char), client.t("is an unknown mode character to me"))
|
||||
}
|
||||
if len(unknown) == 1 && len(changes) == 0 {
|
||||
if len(unknown) != 0 && len(changes) == 0 {
|
||||
return false
|
||||
}
|
||||
}
|
||||
@ -1946,7 +1946,7 @@ func umodeHandler(server *Server, client *Client, msg ircmsg.Message, rb *Respon
|
||||
for _, char := range unknown {
|
||||
rb.Add(nil, server.name, ERR_UNKNOWNMODE, cDetails.nick, string(char), client.t("is an unknown mode character to me"))
|
||||
}
|
||||
if len(unknown) == 1 && len(changes) == 0 {
|
||||
if len(unknown) != 0 && len(changes) == 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user