-/* event_neonserv_kick.c - NeonServ v5.3
+/* event_neonserv_kick.c - NeonServ v5.6
* Copyright (C) 2011-2012 Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
if(!(chan->flags & CHANFLAG_CHAN_REGISTERED)) return;
struct neonserv_event_kick_cache *cache = malloc(sizeof(*cache));
if (!cache) {
- perror("malloc() failed");
+ printf_log("neonserv", LOG_ERROR, "%s:%d malloc() failed", __FILE__, __LINE__);
return;
}
cache->client = client;
cache->chan = target->chan;
cache->userauth_pending = 0;
if(!(user->flags & USERFLAG_ISAUTHED)) {
- get_userauth(user, neonserv_event_kick_nick_lookup, cache);
+ get_userauth(user, module_id, neonserv_event_kick_nick_lookup, cache);
cache->userauth_pending++;
}
if(!(target->user->flags & USERFLAG_ISAUTHED)) {
- get_userauth(target->user, neonserv_event_kick_nick_lookup, cache);
+ get_userauth(target->user, module_id, neonserv_event_kick_nick_lookup, cache);
cache->userauth_pending++;
}
neonserv_event_kick_async1(cache);