regonlymsg: use invite instead of can_invite hook

This commit is contained in:
Ariadne Conill 2020-06-26 14:22:31 -06:00
parent 27590ae0b4
commit daaf127d84

View file

@ -88,7 +88,7 @@ allow_message(struct Client *source_p, struct Client *target_p)
}
static void
h_can_invite(void *vdata)
h_hdl_invite(void *vdata)
{
hook_data_channel_approval *data = vdata;
struct Client *source_p = data->client;
@ -129,7 +129,7 @@ h_hdl_privmsg_user(void *vdata)
}
static mapi_hfn_list_av1 um_regonlymsg_hfnlist[] = {
{ "can_invite", h_can_invite },
{ "invite", h_hdl_invite },
{ "privmsg_user", h_hdl_privmsg_user },
{ NULL, NULL }
};