Mark BouncerServ as server operator
That's what some widely used IRC servers do for their own services (e.g. NickServ and ChanServ). This adds an additional level of trust to make sure BouncerServ isn't typo'ed or impersonated.
This commit is contained in:
parent
4e35b4812f
commit
3ab8ef17df
@ -1915,7 +1915,7 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: irc.RPL_WHOREPLY,
|
||||
Params: []string{serviceNick, "*", servicePrefix.User, servicePrefix.Host, dc.srv.Hostname, serviceNick, "H", "0 " + serviceRealname},
|
||||
Params: []string{serviceNick, "*", servicePrefix.User, servicePrefix.Host, dc.srv.Hostname, serviceNick, "H@", "0 " + serviceRealname},
|
||||
})
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
@ -1991,6 +1991,11 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
|
||||
Command: irc.RPL_WHOISSERVER,
|
||||
Params: []string{dc.nick, serviceNick, dc.srv.Hostname, "soju"},
|
||||
})
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: irc.RPL_WHOISOPERATOR,
|
||||
Params: []string{dc.nick, serviceNick, "is the bouncer service"},
|
||||
})
|
||||
dc.SendMessage(&irc.Message{
|
||||
Prefix: dc.srv.prefix(),
|
||||
Command: irc.RPL_ENDOFWHOIS,
|
||||
|
Loading…
Reference in New Issue
Block a user