1
0
mirror of https://github.com/anope/anope.git synced 2026-07-07 17:03:13 +02:00

Add the TRY_AGAIN_LATER message for when a command is unavailable.

This replaces SERVICE_UNAVAILABLE and other custom messages.
This commit is contained in:
Sadie Powell
2025-11-24 23:56:23 +00:00
parent bee669b42e
commit e0331dae2a
15 changed files with 47 additions and 20 deletions
+4 -1
View File
@@ -65,7 +65,10 @@ class CommandCSClone final
static void CopyAkick(CommandSource &source, ChannelInfo *ci, ChannelInfo *target_ci)
{
if (!ChanServ::akick_service)
{
source.Reply(TRY_AGAIN_LATER, source.command.nobreak().c_str());
return;
}
ChanServ::akick_service->ClearAKick(target_ci);
for (unsigned i = 0; i < ChanServ::akick_service->GetAKickCount(ci); ++i)
@@ -87,7 +90,7 @@ class CommandCSClone final
if (!target_badwords || !badwords)
{
source.Reply(ACCESS_DENIED); // BotServ doesn't exist/badwords isn't loaded
source.Reply(TRY_AGAIN_LATER, source.command.nobreak().c_str());
return;
}