mirror of
https://github.com/ergochat/ergo.git
synced 2026-01-25 21:09:20 -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue