Move list-related isupport items to the list module itself.

This commit is contained in:
Keith Buck 2011-01-06 00:40:08 -08:00
parent 7600b65f4d
commit 4c3f066ab8
2 changed files with 15 additions and 10 deletions

View file

@ -43,6 +43,7 @@
#include "s_conf.h"
#include "s_newconf.h"
#include "s_serv.h"
#include "supported.h"
#include "send.h"
#include "msg.h"
#include "parse.h"
@ -84,12 +85,26 @@ static int _modinit(void)
{
iterate_clients_ev = rb_event_add("safelist_iterate_clients", safelist_iterate_clients, NULL, 3);
/* ELIST=[tokens]:
*
* M = mask search
* N = !mask search
* U = user count search (< >)
* C = creation time search (C> C<)
* T = topic search (T> T<)
*/
add_isupport("SAFELIST", isupport_string, "");
add_isupport("ELIST", isupport_string, "CTU");
return 0;
}
static void _moddeinit(void)
{
rb_event_delete(iterate_clients_ev);
delete_isupport("SAFELIST");
delete_isupport("ELIST");
}
static void safelist_check_cliexit(hook_data_client_exit * hdata)

View file

@ -71,14 +71,6 @@
*
* All unknown/unlisted modes are treated as type D.
*/
/* ELIST=[tokens]:
*
* M = mask search
* N = !mask search
* U = user count search (< >)
* C = creation time search (C> C<)
* T = topic search (T> T<)
*/
#include "stdinc.h"
#include "client.h"
@ -316,8 +308,6 @@ init_isupport(void)
add_isupport("KNOCK", isupport_boolean, &ConfigChannel.use_knock);
add_isupport("STATUSMSG", isupport_string, "@+");
add_isupport("CALLERID", isupport_string, "g");
add_isupport("SAFELIST", isupport_string, "");
add_isupport("ELIST", isupport_string, "CTU");
add_isupport("CASEMAPPING", isupport_string, "rfc1459");
add_isupport("CHARSET", isupport_string, "ascii");
add_isupport("NICKLEN", isupport_intptr, &nicklen);