darkirc: send server reply of rehash command

This commit is contained in:
dasman
2024-09-03 21:49:02 +03:00
parent 5eedc5717d
commit 4ffb1f77ec
2 changed files with 7 additions and 1 deletions

View File

@@ -731,7 +731,7 @@ impl Client {
error!("Failed to rehash server: {}", e);
}
Ok(vec![])
Ok(vec![ReplyType::Server((RPL_REHASHING, format!("Config reloaded!")))])
}
/// `TOPIC <channel> [<topic>]`

View File

@@ -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;
/// `<client> <config file> :Rehashing`
///
/// Sent to an operator which has just successfully issued a REHASH
/// command.
pub const RPL_REHASHING: u16 = 382;
/// `<client> <nickname> :No such nick/channel`
///
/// Indicates that no client can be found for the supplied nickname.