forked from External/ergo
Add +T no-CTCP usermode
This commit is contained in:
parent
425cdffe39
commit
fca2900918
4 changed files with 11 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue