void ServerMsgSender::UpdateProfileMsg() { ServerList *sList = ServerList::Instance(); Handle<ServerInfo> server; if(sList->GetServer(serverid, server)) { server->AskUserInfo(serveruid); } }
int LuaV6Chat3App::SearchFriendOnServer(lua_State *luaState) { V6Chat3App *App = GetV6Chat3App(luaState); if (App) { int id = lua_tointeger(luaState, 2); ServerList *list = ServerList::Instance(); Handle<ServerInfo> server; if(list->GetServer(id, server)) { server->ClearSearchUsersResult(); size_t search_content_len=lua_objlen(luaState, 3); const char *search_content = lua_tolstring(luaState, 3, &search_content_len); server->AskUserInfo(search_content); } } return 0; }