Enhance: passive tracking
This commit is contained in:
parent
baf2e0dedf
commit
58c1d27f2c
@ -295,8 +295,6 @@ func handleWHO(c *Client, e Event) {
|
||||
c.state.Lock()
|
||||
defer c.state.Unlock()
|
||||
|
||||
|
||||
|
||||
user := c.state.lookupUser(nick)
|
||||
if user == nil {
|
||||
c.state.createUserManually(nick, ident, host)
|
||||
@ -304,6 +302,7 @@ func handleWHO(c *Client, e Event) {
|
||||
if account != "0" {
|
||||
c.state.users[nick].Extras.Account = account
|
||||
}
|
||||
c.state.notify(c, UPDATE_STATE)
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -252,11 +252,10 @@ func (cmd *Commands) Topic(channel, message string) {
|
||||
|
||||
// Who sends a WHO query to the server, which will attempt WHOX by default.
|
||||
// See http://faerion.sourceforge.net/doc/irc/whox.var for more details. This
|
||||
// sends "%tcuhnr,2" per default. Do not use "1" as this will conflict with
|
||||
// girc's builtin tracking functionality.
|
||||
// sends "%tcuhnr,1" per default.
|
||||
func (cmd *Commands) Who(users ...string) {
|
||||
for i := 0; i < len(users); i++ {
|
||||
cmd.c.Send(&Event{Command: WHO, Params: []string{users[i], "%tcuhnr,2"}})
|
||||
cmd.c.Send(&Event{Command: WHO, Params: []string{users[i], "%tacuhnr,1"}})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user