Use ircd-hybrid's numerics for the "pending invites" list.

This fixes a conflict with the numerics used by the invite
exception mode.
This commit is contained in:
Sadie Powell 2020-02-18 18:02:13 +00:00
parent 9822a57460
commit df17d47b6a
2 changed files with 7 additions and 2 deletions

View File

@ -86,8 +86,6 @@ enum
RPL_USERIP = 340, RPL_USERIP = 340,
RPL_INVITING = 341, RPL_INVITING = 341,
RPL_INVITELIST = 346, // insp-specific (stolen from ircu)
RPL_ENDOFINVITELIST = 347, // insp-specific (stolen from ircu)
RPL_VERSION = 351, RPL_VERSION = 351,
RPL_NAMREPLY = 353, RPL_NAMREPLY = 353,
RPL_LINKS = 364, RPL_LINKS = 364,

View File

@ -31,6 +31,13 @@
#include "core_channel.h" #include "core_channel.h"
#include "invite.h" #include "invite.h"
enum
{
// From ircd-hybrid.
RPL_INVITELIST = 336,
RPL_ENDOFINVITELIST = 337
};
CommandInvite::CommandInvite(Module* parent, Invite::APIImpl& invapiimpl) CommandInvite::CommandInvite(Module* parent, Invite::APIImpl& invapiimpl)
: Command(parent, "INVITE", 0, 0) : Command(parent, "INVITE", 0, 0)
, invapi(invapiimpl) , invapi(invapiimpl)