moved IClient stuff around so OB changes are easier to manage

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%401582
This commit is contained in:
David Anderson
2007-10-15 18:51:56 +00:00
parent 6e03cb39a1
commit fe0a6fb475
3 changed files with 7 additions and 14 deletions
+1 -4
View File
@@ -1013,9 +1013,6 @@ static cell_t KickClient(IPluginContext *pContext, const cell_t *params)
return 1;
}
INetChannel *pNetChan = static_cast<INetChannel *>(engine->GetPlayerNetInfo(client));
IClient *pClient = static_cast<IClient *>(pNetChan->GetMsgHandler());
g_SourceMod.SetGlobalTarget(client);
char buffer[256];
@@ -1026,7 +1023,7 @@ static cell_t KickClient(IPluginContext *pContext, const cell_t *params)
return 0;
}
pClient->Disconnect("%s", buffer);
pPlayer->Kick(buffer);
return 1;
}