From c9c95cbec08595b1d94c1c162e9d005ec0591d1a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Sep 2014 11:25:46 +0000 Subject: code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@10650 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/IRCG/src/commandmonitor.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'protocols/IRCG') diff --git a/protocols/IRCG/src/commandmonitor.cpp b/protocols/IRCG/src/commandmonitor.cpp index e3da7f032b..8f39d5aefe 100644 --- a/protocols/IRCG/src/commandmonitor.cpp +++ b/protocols/IRCG/src/commandmonitor.cpp @@ -2043,7 +2043,7 @@ bool CIrcProto::OnIrc_TRYAGAIN(const CIrcMessage* pmsg) bool CIrcProto::OnIrc_USERHOST_REPLY(const CIrcMessage* pmsg) { - CMString command = _T(""); + CMString command; if (pmsg->m_bIncoming) { command = GetNextUserhostReason(1); if (!command.IsEmpty() && command != _T("U") && pmsg->parameters.getCount() > 1) { @@ -2056,7 +2056,6 @@ bool CIrcProto::OnIrc_USERHOST_REPLY(const CIrcMessage* pmsg) CMString mask; CMString mess; CMString channel; - int i; // Status-check pre-processing: Setup check-list OBJLIST checklist(10); @@ -2117,9 +2116,9 @@ bool CIrcProto::OnIrc_USERHOST_REPLY(const CIrcMessage* pmsg) setTString(hContact, "Nick", nick.c_str()); // If user found, remove from checklist - for (i = 0; i < checklist.getCount(); i++) - if (!lstrcmpi(checklist[i].c_str(), nick.c_str())) - checklist.remove(i); + for (int i = 0; i < checklist.getCount(); i++) + if (!lstrcmpi(checklist[i].c_str(), nick.c_str())) + checklist.remove(i); } } break; @@ -2165,7 +2164,7 @@ bool CIrcProto::OnIrc_USERHOST_REPLY(const CIrcMessage* pmsg) // Status-check post-processing: make buddies in ckeck-list offline if (command[0] == 'S') { - for (i = 0; i < checklist.getCount(); i++) { + for (int i = 0; i < checklist.getCount(); i++) { finduser.name = (TCHAR*)checklist[i].c_str(); finduser.ExactNick = true; CList_SetOffline(&finduser); -- cgit v1.2.3