]> jfr.im git - irc/freenode/solanum.git/commitdiff
callerid: use invite instead of can_invite hook
authorAriadne Conill <redacted>
Fri, 26 Jun 2020 20:23:02 +0000 (14:23 -0600)
committerAriadne Conill <redacted>
Thu, 9 Jul 2020 22:06:33 +0000 (16:06 -0600)
modules/um_callerid.c

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