CmdChannel.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:3k
- #include "stdafx.h"
- #include "XMudClient.h"
- #include "CommandCheck.h"
- #include "MenuCreateNew.h"
- #include "CommandCheck.h"
- #include "MainScreen.h"
- extern rmfullglobals myglobs;
- extern int g_nGameState;
- extern CMainScreen m_MainScreen;
- extern CList <CChatChannel*,CChatChannel*> chatchannellist;
- void GetWhoOnline(CString szWhoOnline)
- {
- CChatChannel *lpChatChannel;
- int i,j;
- char *ps;
- CString strtmp;
- CStringList strls;
- CString parm = ("t");
- BOOL bFindHead = FALSE;
- if(!chatchannellist.IsEmpty())
- chatchannellist.RemoveAll();
- ps = strtok((char*)(LPCSTR)szWhoOnline,(const char*)parm);
- while (ps != NULL) {
- strls.AddTail(ps);
- ps = strtok(NULL,(const char*)parm);
- }
- j = strls.GetCount();
- if (j < 8){
- strtmp = szRedLow;
- strtmp += CString("册ぱ繵笵计沮钡Μぃタ絋,