X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=src%2Fcmd_neonserv_unsuspend.c;h=64b90ad52fc5ba3d3678a793bc3ae09736479642;hb=44436a96352a38631237978c9fd431cef3d85cfb;hp=bff1d95d0d7a00bd84032f81ee4154adf33802f8;hpb=2d9db1adb1946aba00b203f40eff7d5db8163f01;p=NeonServV5.git diff --git a/src/cmd_neonserv_unsuspend.c b/src/cmd_neonserv_unsuspend.c index bff1d95..64b90ad 100644 --- a/src/cmd_neonserv_unsuspend.c +++ b/src/cmd_neonserv_unsuspend.c @@ -1,4 +1,4 @@ -/* cmd_neonserv_unsuspend.c - NeonServ v5.1 +/* cmd_neonserv_unsuspend.c - NeonServ v5.3 * Copyright (C) 2011 Philipp Kreil (pk910) * * This program is free software: you can redistribute it and/or modify @@ -90,7 +90,7 @@ static void neonserv_cmd_unsuspend_async1(struct ClientSocket *client, struct Cl printf_mysql_query("SELECT `chanuser_access`, `chanuser_id`, `chanuser_flags` FROM `chanusers` WHERE `chanuser_cid` = '%d' AND `chanuser_uid` = '%d'", chan->channel_id, userid); res = mysql_use(); if ((row = mysql_fetch_row(res)) != NULL) { - if(atoi(row[0]) >= getChannelAccess(user, chan, 0)) { + if(atoi(row[0]) >= getChannelAccess(user, chan)) { if(isGodMode(user)) { event->flags |= CMDFLAG_OPLOG; } else {