X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/23c9dc3806b254f04c104977a2ab3bb7d2b54ae2..28aa186de14dc4fa7488866e70beb6ae933dde79:/channel/channel.c?ds=sidebyside diff --git a/channel/channel.c b/channel/channel.c index 5305fa13..cf875d4b 100644 --- a/channel/channel.c +++ b/channel/channel.c @@ -43,9 +43,6 @@ void channelstats(int hooknum, void *arg); void sendchanburst(int hooknum, void *arg); void _init() { - /* Initialise internal structures */ - initchannelalloc(); - /* Set up the nouser marker according to our own numeric */ nouser=(mylongnum<<18)|CU_NOUSERMASK; @@ -161,7 +158,7 @@ void delnickfromchannel(channel *cp, long numeric, int updateuser) { void *args[2]; if ((np=getnickbynumeric(numeric&CU_NUMERICMASK))==NULL) { - Error("channel",ERR_ERROR,"Trying to remove non-existent nick %d from channel %s",numeric,cp->index->name); + Error("channel",ERR_ERROR,"Trying to remove non-existent nick %lu from channel %s",numeric,cp->index->name->content); return; } @@ -418,7 +415,7 @@ unsigned int countuniquehosts(channel *cp) { continue; if ((np=getnickbynumeric(cp->users->content[i]))==NULL) { - Error("channel",ERR_ERROR,"Found unknown numeric %u on channel %s",cp->users->content[i],cp->index->name->content); + Error("channel",ERR_ERROR,"Found unknown numeric %lu on channel %s",cp->users->content[i],cp->index->name->content); continue; }