Merge pull request #1123 from clukawski/no-ctcp-user-mode

Add +T no-CTCP usermode
This commit is contained in:
Shivaram Lingamneni
2020-06-27 21:13:24 -07:00
committed by GitHub
4 changed files with 11 additions and 2 deletions

View File

@@ -2019,6 +2019,12 @@ func dispatchMessageToTarget(client *Client, tags map[string]string, histType hi
}
return
}
// Restrict CTCP message for target user with +T
if user.modes.HasMode(modes.UserNoCTCP) && message.IsRestrictedCTCPMessage() {
return
}
tDetails := user.Details()
tnick := tDetails.nick