fix: fix sending of IrcResponseCodes
All checks were successful
build / test-alpine (push) Successful in 52s
build / test-debian (push) Successful in 1m2s

This commit is contained in:
user0-07161 2026-02-15 20:45:58 +01:00
parent cecd44b170
commit b8699205cd

View file

@ -72,7 +72,7 @@ impl IrcResponseCodes {
pub fn into_irc_response(&self, receiver: String, message: String) -> IrcResponse { pub fn into_irc_response(&self, receiver: String, message: String) -> IrcResponse {
IrcResponse { IrcResponse {
sender: None, sender: None,
command: (*self).into(), command: format!("{:03}", (*self) as u16),
arguments: Vec::new(), arguments: Vec::new(),
receiver: Some(receiver), receiver: Some(receiver),
message, message,