diff options
author | George Hazan <george.hazan@gmail.com> | 2015-08-13 20:12:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-08-13 20:12:02 +0000 |
commit | 1ca35422a252e1b254d6a4823717d39f7988514f (patch) | |
tree | d2f6b3486d75cb83a506a27faf4d652cdd686037 /protocols/IRCG/src/ircproto.cpp | |
parent | e84bf4a5995b26423129b9339dd387e2a7431a0a (diff) |
fix for wrong CMString::Mid calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@14944 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/src/ircproto.cpp')
-rw-r--r-- | protocols/IRCG/src/ircproto.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp index 9504b70bc9..da16702dbe 100644 --- a/protocols/IRCG/src/ircproto.cpp +++ b/protocols/IRCG/src/ircproto.cpp @@ -556,7 +556,7 @@ HANDLE __cdecl CIrcProto::SendFile(MCONTACT hContact, const TCHAR*, TCHAR** ppsz int i = dci->sFileAndPath.ReverseFind('\\');
if (i != -1) {
dci->sPath = dci->sFileAndPath.Mid(0, i + 1);
- dci->sFile = dci->sFileAndPath.Mid(i + 1, dci->sFileAndPath.GetLength());
+ dci->sFile = dci->sFileAndPath.Mid(i + 1);
}
CMString sFileWithQuotes = dci->sFile;
@@ -757,7 +757,7 @@ int CIrcProto::SetStatusInternal(int iNewStatus, bool bIsInternal) }
else if (iNewStatus == ID_STATUS_AWAY && IsConnected()) //go to away while connected
{
- PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450).c_str());
+ PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450));
return 0;
}
else if (iNewStatus == ID_STATUS_ONLINE && IsConnected()) //already online
@@ -815,7 +815,7 @@ int __cdecl CIrcProto::SetAwayMsg(int status, const TCHAR* msg) m_statusMessage = newStatus;
if (m_iStatus == ID_STATUS_AWAY)
- PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450).c_str());
+ PostIrcMessage(_T("/AWAY %s"), m_statusMessage.Mid(0, 450));
}
}
|