callerid: use invite instead of can_invite hook

This commit is contained in:
Ariadne Conill 2020-06-26 14:23:02 -06:00
parent 7b60cca0f1
commit db80763427

View file

@ -169,7 +169,7 @@ add_callerid_accept_for_source(enum message_type msgtype, struct Client *source_
} }
static void static void
h_can_invite(void *vdata) h_hdl_invite(void *vdata)
{ {
hook_data_channel_approval *data = vdata; hook_data_channel_approval *data = vdata;
struct Client *source_p = data->client; struct Client *source_p = data->client;
@ -218,7 +218,7 @@ h_hdl_privmsg_user(void *vdata)
} }
static mapi_hfn_list_av1 um_callerid_hfnlist[] = { static mapi_hfn_list_av1 um_callerid_hfnlist[] = {
{ "can_invite", h_can_invite }, { "invite", h_hdl_invite },
{ "privmsg_user", h_hdl_privmsg_user }, { "privmsg_user", h_hdl_privmsg_user },
{ NULL, NULL } { NULL, NULL }
}; };