Skip to content

Commit

Permalink
Add ACCOUNTEXTBAN ISUPPORT token
Browse files Browse the repository at this point in the history
To support the draft IRCv3 spec: ircv3/ircv3-specifications#464
  • Loading branch information
progval authored and spb committed Jul 1, 2023
1 parent 5ca20c0 commit 538ca6c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions extensions/extb_account.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include "modules.h"
#include "client.h"
#include "ircd.h"
#include "supported.h"

static const char extb_desc[] = "Account ($a) extban type";

Expand All @@ -20,6 +21,7 @@ static int
_modinit(void)
{
extban_table['a'] = eb_account;
add_isupport("ACCOUNTEXTBAN", isupport_string, "a");

return 0;
}
Expand All @@ -28,6 +30,7 @@ static void
_moddeinit(void)
{
extban_table['a'] = NULL;
delete_isupport("ACCOUNTEXTBAN");
}

static int eb_account(const char *data, struct Client *client_p,
Expand Down

0 comments on commit 538ca6c

Please sign in to comment.