Fix CNick::Parse()

If the mask started with ':', the following '!' was included to nick.
This commit is contained in:
J-P Nurmi
2014-11-01 13:05:51 +01:00
parent 5aa5e99a08
commit 8fdf51dfeb
3 changed files with 38 additions and 2 deletions

View File

@@ -49,7 +49,7 @@ void CNick::Parse(const CString& sNickMask) {
return;
}
m_sNick = sNickMask.substr((sNickMask[0] == ':'), uPos);
m_sNick = sNickMask.substr((sNickMask[0] == ':'), uPos - (sNickMask[0] == ':'));
m_sHost = sNickMask.substr(uPos +1);
if ((uPos = m_sHost.find('@')) != CString::npos) {