version: show echoircd-<major> (5) in 002/004/351 and enrich RPL_VERSION with build/toolchain provenance

This commit is contained in:
Jean Chevronnet 2026-08-23 01:24:45 +00:00
parent 5c286a94cb
commit 42fe82556b
No known key found for this signature in database
GPG key ID: 439666D63A9477E4
6 changed files with 71 additions and 9 deletions

View file

@ -7,7 +7,7 @@ use std::net::{SocketAddr, TcpStream};
use crate::extensible::Extensible;
use crate::module::Hook;
use crate::numeric::*;
use crate::server::{Server, VERSION};
use crate::server::{Server, RELEASE};
use crate::socketengine::OutSink;
use crate::Uid;
@ -464,7 +464,7 @@ impl Server {
self.numeric(
uid,
RPL_YOURHOST,
&format!(":Your host is {}, running echoircd-{VERSION}", self.name),
&format!(":Your host is {}, running echoircd-{RELEASE}", self.name),
);
self.numeric(
uid,
@ -475,7 +475,7 @@ impl Server {
uid,
RPL_MYINFO,
&format!(
"{} echoircd-{VERSION} iowxsgBkDIHrRzWhc qaohvbeIklimnpstzCTcSNORMfjFLgGuBQAPJUdKXwD",
"{} echoircd-{RELEASE} iowxsgBkDIHrRzWhc qaohvbeIklimnpstzCTcSNORMfjFLgGuBQAPJUdKXwD",
self.name
),
);