Mark bouncer users and BouncerServ as authenticated in WHOX/WHOIS
This commit is contained in:
parent
241e27b00e
commit
832d8b89a2
@ -1938,6 +1938,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
||||
Server: dc.srv.Hostname,
|
||||
Nickname: dc.nick,
|
||||
Flags: flags,
|
||||
Account: dc.user.Username,
|
||||
Realname: dc.realname,
|
||||
}
|
||||
dc.SendMessage(generateWHOXReply(dc.srv.prefix(), dc.nick, fields, &info))
|
||||
@ -1956,6 +1957,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
||||
Server: dc.srv.Hostname,
|
||||
Nickname: serviceNick,
|
||||
Flags: "H*",
|
||||
Account: serviceNick,
|
||||
Realname: serviceRealname,
|
||||
}
|
||||
dc.SendMessage(generateWHOXReply(dc.srv.prefix(), dc.nick, fields, &info))
|
||||
@ -2021,6 +2023,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
||||
Params: []string{dc.nick, dc.nick, "is a bouncer administrator"},
|
||||
})
|
||||
}
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: rpl_whoisaccount,
|
||||
Params: []string{dc.nick, dc.nick, dc.user.Username, "is logged in as"},
|
||||
})
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: irc.RPL_ENDOFWHOIS,
|
||||
@ -2044,6 +2051,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
||||
Command: irc.RPL_WHOISOPERATOR,
|
||||
Params: []string{dc.nick, serviceNick, "is the bouncer service"},
|
||||
})
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: rpl_whoisaccount,
|
||||
Params: []string{dc.nick, serviceNick, serviceNick, "is logged in as"},
|
||||
})
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: irc.RPL_ENDOFWHOIS,
|
||||
|
Loading…
Reference in New Issue
Block a user