void LUABroadcaster::RemoveServer(lua_State* pState, Broadcaster& broadcaster, const string& address) { if (Script::FromObject(pState, broadcaster)) { Script::Collection(pState, -1, "|items", broadcaster.count()); lua_pushstring(pState, address.c_str()); lua_pushnil(pState); lua_rawset(pState, -3); // rawset cause NewIndexProhibited lua_pop(pState, 2); } }