summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-09-30 11:25:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-09-30 11:25:46 +0000
commitc9c95cbec08595b1d94c1c162e9d005ec0591d1a (patch)
tree3b074aa20975062de82d09606ac857fb69642aaf /protocols/IRCG
parent7165de6f45d67e4c7cf6e82b04cc2783bb5b9a8d (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@10650 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/src/commandmonitor.cpp11
1 files changed, 5 insertions, 6 deletions
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<CMString> 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);