- Timestamp:
- 11/03/00 02:57:58 (8 years ago)
- Location:
- trunk/rms/src
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/rms/src/rms.cpp
r2210 r2348 381 381 for (iter = tags.begin(); iter != tags.end(); iter++) 382 382 { 383 if ( (*iter)->Equals(e) ) break;383 if ( e->Equals(*iter) ) break; 384 384 } 385 385 if (iter == tags.end()) return false; 386 386 387 CICQEventTag *tag = *iter;387 unsigned long tag = *iter; 388 388 tags.erase(iter); 389 389 … … 414 414 break; 415 415 } 416 fprintf(fs, "%d [%ld] Event %s.\n", nCode, tag ->EventId(), szr);416 fprintf(fs, "%d [%ld] Event %s.\n", nCode, tag, szr); 417 417 fflush(fs); 418 delete tag;419 418 420 419 return true; … … 642 641 bool b = o->StatusOffline(); 643 642 gUserManager.DropOwner(); 644 CICQEventTag *tag = NULL;643 unsigned long tag = 0; 645 644 if (b) 646 645 { 647 646 tag = licqDaemon->icqLogon(nStatus); 648 fprintf(fs, "%d [%ld] Logging on.\n", CODE_COMMANDxSTART, tag ->EventId());647 fprintf(fs, "%d [%ld] Logging on.\n", CODE_COMMANDxSTART, tag); 649 648 } 650 649 else 651 650 { 652 651 tag = licqDaemon->icqSetStatus(nStatus); 653 fprintf(fs, "%d [%ld] Setting status.\n", CODE_COMMANDxSTART, tag ->EventId());652 fprintf(fs, "%d [%ld] Setting status.\n", CODE_COMMANDxSTART, tag); 654 653 } 655 654 tags.push_back(tag); … … 827 826 int CRMSClient::Process_MESSAGE_text() 828 827 { 829 CICQEventTag *tag = licqDaemon->icqSendMessage(m_nUin, m_szText, false, ICQ_TCPxMSG_NORMAL);828 unsigned long tag = licqDaemon->icqSendMessage(m_nUin, m_szText, false, ICQ_TCPxMSG_NORMAL); 830 829 831 830 fprintf(fs, "%d [%ld] Sending message to %ld.\n", CODE_COMMANDxSTART, 832 tag ->EventId(), m_nUin);831 tag, m_nUin); 833 832 834 833 tags.push_back(tag); … … 894 893 int CRMSClient::Process_URL_text() 895 894 { 896 CICQEventTag *tag = licqDaemon->icqSendUrl(m_nUin, m_szLine, m_szText, false, ICQ_TCPxMSG_NORMAL);895 unsigned long tag = licqDaemon->icqSendUrl(m_nUin, m_szLine, m_szText, false, ICQ_TCPxMSG_NORMAL); 897 896 898 897 fprintf(fs, "%d [%ld] Sending URL to %ld.\n", CODE_COMMANDxSTART, 899 tag ->EventId(), m_nUin);898 tag, m_nUin); 900 899 901 900 tags.push_back(tag); -
trunk/rms/src/rms.h
r1902 r2348 21 21 22 22 typedef list<class CRMSClient *> ClientList; 23 typedef list< class CICQEventTag *> TagList;23 typedef list<unsigned long> TagList; 24 24 25 25 class CLicqRMS
