diff options
author | George Hazan <george.hazan@gmail.com> | 2016-09-19 08:40:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-09-19 08:40:15 +0000 |
commit | 52a4fbdec80fd6646f125e26b5319b8dc7fe9a2d (patch) | |
tree | 14a0b0613f7497b167e64edb07d5bf3c85e8ae15 /protocols/IRCG/src/clist.cpp | |
parent | daf624b5103faf66238b255e6cff871d0d59715b (diff) |
IRC - code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17313 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/src/clist.cpp')
-rw-r--r-- | protocols/IRCG/src/clist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/IRCG/src/clist.cpp b/protocols/IRCG/src/clist.cpp index 3095d7096a..484ed0391f 100644 --- a/protocols/IRCG/src/clist.cpp +++ b/protocols/IRCG/src/clist.cpp @@ -29,14 +29,14 @@ BOOL CIrcProto::CList_AddDCCChat(const CMStringW& name, const CMStringW& hostmas char szService[256];
bool bFlag = false;
- CONTACT usertemp = { (wchar_t*)name.c_str(), NULL, NULL, false, false, true };
+ CONTACT usertemp = { name, NULL, NULL, false, false, true };
MCONTACT hc = CList_FindContact(&usertemp);
if (hc && db_get_b(hc, "CList", "NotOnList", 0) == 0 && db_get_b(hc, "CList", "Hidden", 0) == 0)
bFlag = true;
CMStringW contactname = name; contactname += DCCSTRING;
- CONTACT user = { (wchar_t*)contactname.c_str(), NULL, NULL, false, false, true };
+ CONTACT user = { contactname, NULL, NULL, false, false, true };
hContact = CList_AddContact(&user, false, false);
setByte(hContact, "DCC", 1);
|