1
0
Fork 0
forked from External/ergo

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
commit d7a62223a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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