]> jfr.im git - solanum.git/commitdiff
um_callerid: increase hook priority to restore +Rg behavior
authorDoug Freed <redacted>
Wed, 18 Jan 2023 22:21:30 +0000 (16:21 -0600)
committerGitHub <redacted>
Wed, 18 Jan 2023 22:21:30 +0000 (17:21 -0500)
Before splitting things out into hooks, umode +Rg would only notify the
recipient if the sender satisfied +R. This restores that behavior by
making the +g hook happen after +R.

modules/um_callerid.c

index b9410b02dcde4826a5192549b1d894872845c442..9bf53563a19a9a5e331a9c3a5de820f62adc74cf 100644 (file)
@@ -341,8 +341,8 @@ handle_client_exit(void *vdata)
 static mapi_hfn_list_av1 um_callerid_hfnlist[] = {
        { "umode_changed", check_umode_change },
        { "priv_change", check_priv_change },
-       { "invite", h_hdl_invite },
-       { "privmsg_user", h_hdl_privmsg_user },
+       { "invite", h_hdl_invite, HOOK_HIGH },
+       { "privmsg_user", h_hdl_privmsg_user, HOOK_HIGH },
        { "client_exit", handle_client_exit },
        { NULL, NULL }
 };