Send RPL_ISUPPORT CHATHISTORY token
This commit is contained in:
parent
0ba3f1148e
commit
c4d9e6822d
@ -875,6 +875,10 @@ func (dc *downstreamConn) welcome() error {
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isupport := []string{
|
||||||
|
fmt.Sprintf("CHATHISTORY=%v", dc.srv.HistoryLimit),
|
||||||
|
}
|
||||||
|
|
||||||
dc.SendMessage(&irc.Message{
|
dc.SendMessage(&irc.Message{
|
||||||
Prefix: dc.srv.prefix(),
|
Prefix: dc.srv.prefix(),
|
||||||
Command: irc.RPL_WELCOME,
|
Command: irc.RPL_WELCOME,
|
||||||
@ -895,8 +899,12 @@ func (dc *downstreamConn) welcome() error {
|
|||||||
Command: irc.RPL_MYINFO,
|
Command: irc.RPL_MYINFO,
|
||||||
Params: []string{dc.nick, dc.srv.Hostname, "soju", "aiwroO", "OovaimnqpsrtklbeI"},
|
Params: []string{dc.nick, dc.srv.Hostname, "soju", "aiwroO", "OovaimnqpsrtklbeI"},
|
||||||
})
|
})
|
||||||
// TODO: RPL_ISUPPORT
|
// TODO: other RPL_ISUPPORT tokens
|
||||||
// TODO: send CHATHISTORY in RPL_ISUPPORT when implemented
|
dc.SendMessage(&irc.Message{
|
||||||
|
Prefix: dc.srv.prefix(),
|
||||||
|
Command: irc.RPL_ISUPPORT,
|
||||||
|
Params: append(append([]string{dc.nick}, isupport...), "are supported"),
|
||||||
|
})
|
||||||
dc.SendMessage(&irc.Message{
|
dc.SendMessage(&irc.Message{
|
||||||
Prefix: dc.srv.prefix(),
|
Prefix: dc.srv.prefix(),
|
||||||
Command: irc.ERR_NOMOTD,
|
Command: irc.ERR_NOMOTD,
|
||||||
|
Loading…
Reference in New Issue
Block a user