]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
regonlymsg: use invite instead of can_invite hook
authorAriadne Conill <redacted>
Fri, 26 Jun 2020 20:22:31 +0000 (14:22 -0600)
committerAriadne Conill <redacted>
Fri, 26 Jun 2020 20:24:34 +0000 (14:24 -0600)
modules/um_regonlymsg.c

index 00a7b2adf0b06ef940e1c61aca96b76905996299..6ecea70918ba365551c6ced26dde90f76bb645a7 100644 (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 }
 };