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

@ -2,7 +2,7 @@
use crate::command::{CmdResult, Command};
use crate::numeric::*;
use crate::server::{Server, VERSION};
use crate::server::{version_comment, Server, RELEASE};
use crate::users::User;
use crate::Uid;
@ -677,10 +677,8 @@ impl Command for VersionCmd {
true
}
fn handle(&self, s: &mut Server, uid: Uid, _params: &[String]) -> CmdResult {
s.send(
uid,
format!(":{} 351 * echoircd-{VERSION} {} :", s.name, s.name),
);
let line = format!("echoircd-{RELEASE} {} :{}", s.name, version_comment());
s.numeric(uid, RPL_VERSION, &line);
CmdResult::Ok
}
}