um_callerid: increase hook priority to restore +Rg behavior

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.
This commit is contained in:
Doug Freed 2023-01-18 16:21:30 -06:00 committed by GitHub
parent e02cc991bb
commit 2a64b1e5b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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