1
0
Fork 0
forked from External/ergo

Add +T no-CTCP usermode

This commit is contained in:
Conrad Lukawski 2020-06-08 14:43:58 -04:00
parent 425cdffe39
commit fca2900918
4 changed files with 11 additions and 2 deletions

View file

@ -1938,6 +1938,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