Fix hooks on previously-disabled modules.
This commit is contained in:
parent
988ff81b8b
commit
4752279686
|
@ -44,10 +44,8 @@ DECLARE_MODULE_V1
|
|||
);
|
||||
|
||||
static void
|
||||
on_channel_message(void *p)
|
||||
on_channel_message(hook_cmessage_data_t *data)
|
||||
{
|
||||
hook_cmessage_data_t *data = p;
|
||||
|
||||
if (data != NULL && data->msg != NULL)
|
||||
{
|
||||
mychan_t *mc = MYCHAN_FROM(data->c);
|
||||
|
|
|
@ -35,9 +35,8 @@ void _moddeinit(module_unload_intent_t intent)
|
|||
hook_del_channel_register(handle_channel_register);
|
||||
}
|
||||
|
||||
static void handle_channel_register(void *vptr)
|
||||
static void handle_channel_register(hook_channel_req_t *hdata)
|
||||
{
|
||||
hook_channel_req_t *hdata = vptr;
|
||||
mychan_t *mc = hdata->mc;
|
||||
unsigned int *target;
|
||||
char *it, *str = MLOCK_CHANGE;
|
||||
|
|
Loading…
Reference in New Issue