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

Add error constants for the custom error range.

This commit is contained in:
Sadie Powell
2025-02-20 15:03:48 +00:00
parent 96839ae1b8
commit fa0f78b937
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -50,7 +50,7 @@ public:
request.reply = this->repl;
request.Error(-32000, "Invalid password");
request.Error(RPC::ERR_CUSTOM_START, "Invalid password");
xinterface->Reply(request);
client->SendReply(&request.reply);
@@ -81,7 +81,7 @@ public:
BotInfo *bi = BotInfo::Find(service, true);
if (!bi)
{
request.Error(-32000, "Invalid service");
request.Error(RPC::ERR_CUSTOM_START, "Invalid service");
return true;
}