}
int
-check_bans(struct userNode *user, char *channel)
+check_bans(struct userNode *user, const char *channel)
{
struct chanNode *chan;
struct mod_chanmode change;
if(!(cData = chan->channel_info))
return 0;
+ mod_chanmode_init(&change);
+ change.argc = 1;
+
if(chan->banlist.used < MAXBANS)
{
/* Not joining through a ban. */
}
-
mod_chanmode_init(&change);
change.argc = 1;