mirror of
https://github.com/ergochat/ergo.git
synced 2026-01-22 19:39:55 -08:00
Send a configurable NOTICE on first connection that hopm can detect via target_string
This commit is contained in:
parent
b26571e891
commit
13653b5202
5 changed files with 22 additions and 2 deletions
|
|
@ -414,6 +414,11 @@ func (server *Server) RunClient(conn IRCConn) {
|
|||
session.certfp, session.peerCerts, _ = utils.GetCertFP(wConn.Conn, RegisterTimeout)
|
||||
}
|
||||
|
||||
if config.Server.InitialNotice != "" {
|
||||
// send initial notice for HOPM to recognize
|
||||
client.Send(nil, client.server.name, "NOTICE", "*", config.Server.InitialNotice)
|
||||
}
|
||||
|
||||
if session.isTor {
|
||||
session.rawHostname = config.Server.TorListeners.Vhost
|
||||
client.rawHostname = session.rawHostname
|
||||
|
|
|
|||
|
|
@ -580,7 +580,8 @@ type Config struct {
|
|||
CoerceIdent string `yaml:"coerce-ident"`
|
||||
MOTD string
|
||||
motdLines []string
|
||||
MOTDFormatting bool `yaml:"motd-formatting"`
|
||||
MOTDFormatting bool `yaml:"motd-formatting"`
|
||||
InitialNotice string `yaml:"initial-notice"`
|
||||
IdleTimeouts struct {
|
||||
Registration time.Duration
|
||||
Ping time.Duration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue