From 1655fba81171467a761197b8ea3ac4add3bce033 Mon Sep 17 00:00:00 2001 From: pk910 Date: Sat, 20 Aug 2011 08:38:48 +0200 Subject: [PATCH] fixed last commit --- DBHelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DBHelper.c b/DBHelper.c index f0897d2..1c7a667 100644 --- a/DBHelper.c +++ b/DBHelper.c @@ -73,7 +73,7 @@ int checkChannelAccess(struct UserNode *user, struct ChanNode *chan, char *chann printf_mysql_query("SELECT `%s` FROM `channels` WHERE `channel_id` = '%d'", channel_setting, chan->channel_id); res = mysql_use(); if ((row = mysql_fetch_row(res)) == NULL) return 0; - int require_access = (row[0] ? atoi(row[0]) : getChanDefault(channel_setting)); + int require_access = atoi((row[0] ? row[0] : getChanDefault(channel_setting))); if(require_access == 0) return 1; if(!(user->flags & USERFLAG_ISAUTHED)) return 0; int caccess = 0; -- 2.20.1