Fix hooks on previously-disabled modules.

This commit is contained in:
William Pitcock 2012-04-17 20:50:41 +00:00
parent 988ff81b8b
commit 4752279686
2 changed files with 2 additions and 5 deletions

View File

@ -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);

View File

@ -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;