Add ACCOUNTEXTBAN ISUPPORT token
To support the draft IRCv3 spec: https://github.com/ircv3/ircv3-specifications/pull/464
This commit is contained in:
parent
cc95a6722e
commit
83f7888d72
1 changed files with 3 additions and 0 deletions
|
@ -7,6 +7,7 @@
|
||||||
#include "modules.h"
|
#include "modules.h"
|
||||||
#include "client.h"
|
#include "client.h"
|
||||||
#include "ircd.h"
|
#include "ircd.h"
|
||||||
|
#include "supported.h"
|
||||||
|
|
||||||
static const char extb_desc[] = "Account ($a) extban type";
|
static const char extb_desc[] = "Account ($a) extban type";
|
||||||
|
|
||||||
|
@ -20,6 +21,7 @@ static int
|
||||||
_modinit(void)
|
_modinit(void)
|
||||||
{
|
{
|
||||||
extban_table['a'] = eb_account;
|
extban_table['a'] = eb_account;
|
||||||
|
add_isupport("ACCOUNTEXTBAN", isupport_string, "a");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -28,6 +30,7 @@ static void
|
||||||
_moddeinit(void)
|
_moddeinit(void)
|
||||||
{
|
{
|
||||||
extban_table['a'] = NULL;
|
extban_table['a'] = NULL;
|
||||||
|
delete_isupport("ACCOUNTEXTBAN");
|
||||||
}
|
}
|
||||||
|
|
||||||
static int eb_account(const char *data, struct Client *client_p,
|
static int eb_account(const char *data, struct Client *client_p,
|
||||||
|
|
Loading…
Reference in a new issue