From 4ffb1f77ecf41f4801168d983e173dc6772df2e5 Mon Sep 17 00:00:00 2001 From: dasman Date: Tue, 3 Sep 2024 21:49:02 +0300 Subject: [PATCH] darkirc: send server reply of rehash command --- bin/darkirc/src/irc/command.rs | 2 +- bin/darkirc/src/irc/rpl.rs | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/darkirc/src/irc/command.rs b/bin/darkirc/src/irc/command.rs index 4db71afb4..f957f4928 100644 --- a/bin/darkirc/src/irc/command.rs +++ b/bin/darkirc/src/irc/command.rs @@ -731,7 +731,7 @@ impl Client { error!("Failed to rehash server: {}", e); } - Ok(vec![]) + Ok(vec![ReplyType::Server((RPL_REHASHING, format!("Config reloaded!")))]) } /// `TOPIC []` diff --git a/bin/darkirc/src/irc/rpl.rs b/bin/darkirc/src/irc/rpl.rs index 24d40600a..a593dc56b 100644 --- a/bin/darkirc/src/irc/rpl.rs +++ b/bin/darkirc/src/irc/rpl.rs @@ -147,6 +147,12 @@ pub const RPL_MOTD: u16 = 372; /// Indicates the end of the Message of the Day to the client. pub const RPL_ENDOFMOTD: u16 = 376; +/// ` :Rehashing` +/// +/// Sent to an operator which has just successfully issued a REHASH +/// command. +pub const RPL_REHASHING: u16 = 382; + /// ` :No such nick/channel` /// /// Indicates that no client can be found for the supplied nickname.