added a debugging log message for conn_notice packets

created SendNotice function for reuse by external parties
This commit is contained in:
2025-02-26 19:45:29 +09:00
parent 5df95159a3
commit 71a42af593
3 changed files with 35 additions and 17 deletions

View File

@ -1193,6 +1193,7 @@ start_over:
var ok bool
x, ok = pkt.U.(*Packet_Notice)
if ok {
cts.C.log.Write(cts.Sid, LOG_DEBUG, "conn_notice message '%s' received from %s", x.Notice.Text, cts.remote_addr)
if cts.C.conn_notice != nil {
cts.C.conn_notice.Handle(cts, x.Notice.Text)
}