mirror of https://github.com/fluffle/goirc
client: track bot mode on who replies.
This commit is contained in:
parent
58eaab3f1f
commit
09765bab65
|
@ -4,8 +4,9 @@ package client
|
|||
// to manage tracking state for an IRC connection
|
||||
|
||||
import (
|
||||
"github.com/fluffle/goirc/logging"
|
||||
"strings"
|
||||
|
||||
"github.com/fluffle/goirc/logging"
|
||||
)
|
||||
|
||||
var stHandlers = map[string]HandlerFunc{
|
||||
|
@ -177,6 +178,9 @@ func (conn *Conn) h_352(line *Line) {
|
|||
if idx := strings.Index(line.Args[6], "*"); idx != -1 {
|
||||
nk.Modes.Oper = true
|
||||
}
|
||||
if idx := strings.Index(line.Args[6], "B"); idx != -1 {
|
||||
nk.Modes.Bot = true
|
||||
}
|
||||
if idx := strings.Index(line.Args[6], "H"); idx != -1 {
|
||||
nk.Modes.Invisible = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue