downstream: reflect AWAY status in self-WHO reply without upstream
This commit is contained in:
parent
4682bbef66
commit
a3716dc2d2
|
@ -2153,8 +2153,10 @@ func (dc *downstreamConn) handleMessageRegistered(ctx context.Context, msg *irc.
|
||||||
// TODO: support mixed bouncer/upstream WHO queries
|
// TODO: support mixed bouncer/upstream WHO queries
|
||||||
maskCM := dc.casemap(mask)
|
maskCM := dc.casemap(mask)
|
||||||
if dc.network == nil && maskCM == dc.nickCM {
|
if dc.network == nil && maskCM == dc.nickCM {
|
||||||
// TODO: support AWAY (H/G) in self WHO reply
|
|
||||||
flags := "H"
|
flags := "H"
|
||||||
|
if dc.away != nil {
|
||||||
|
flags = "G"
|
||||||
|
}
|
||||||
if dc.user.Admin {
|
if dc.user.Admin {
|
||||||
flags += "*"
|
flags += "*"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue