forked from External/ergo
parent
76b0e44474
commit
fe8e6551c3
2 changed files with 10 additions and 0 deletions
|
|
@ -1324,6 +1324,12 @@ func (channel *Channel) isMuted(client *Client) bool {
|
|||
return muteRe.MatchString(nuh) && !channel.lists[modes.ExceptMask].MatchMute(nuh)
|
||||
}
|
||||
|
||||
func (channel *Channel) relayNickMuted(relayNick string) bool {
|
||||
relayNUH := fmt.Sprintf("%s!*@*", relayNick)
|
||||
return channel.lists[modes.BanMask].MatchMute(relayNUH) &&
|
||||
!channel.lists[modes.ExceptMask].MatchMute(relayNUH)
|
||||
}
|
||||
|
||||
func msgCommandToHistType(command string) (history.ItemType, error) {
|
||||
switch command {
|
||||
case "PRIVMSG":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue