forked from UNLOZE/sm-plugins
AdminGroups: Woopsie
Quickie fixie
This commit is contained in:
@@ -308,7 +308,7 @@ public int Native_RevokeAdminGroup(Handle hPlugin, int numParams)
|
||||
}
|
||||
|
||||
int clientGroupIndex;
|
||||
if ((clientGroupIndex = G_hArray_ClientGroups[client].FindString(group)) != -1)
|
||||
if ((clientGroupIndex = G_hArray_ClientGroups[client].FindString(group)) == -1)
|
||||
{
|
||||
ThrowNativeError(SP_ERROR_NATIVE, "Client doesnt have group. (%s) [%d]", group, clientGroupIndex);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user