filter: correct type for modinit

This commit is contained in:
Ed Kellett 2019-10-06 00:41:56 +01:00
parent 9fe8bccba0
commit eb06afc3fa
No known key found for this signature in database
GPG key ID: CB9986DEF342FABC

View file

@ -100,12 +100,13 @@ struct Message setfilter_msgtab = {
{mg_unreg, mg_not_oper, mg_ignore, mg_ignore, {me_setfilter, 2}, {mo_setfilter, 2}}
};
static void
static int
modinit(void)
{
filter_umode = user_modes['u'] = find_umode_slot();
construct_umodebuf();
filter_chmode = cflag_add('u', chm_simple);
return 0;
}
static void