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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user