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/input.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/input.cpp')
-rw-r--r-- | protocols/IRCG/src/input.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/IRCG/src/input.cpp b/protocols/IRCG/src/input.cpp index cf66f3273b..ecdbe4c3ff 100644 --- a/protocols/IRCG/src/input.cpp +++ b/protocols/IRCG/src/input.cpp @@ -540,7 +540,7 @@ BOOL CIrcProto::DoHardcodedCommand(CMStringW text, wchar_t *window, MCONTACT hCo if (one.IsEmpty() || IsChannel(one.c_str()))
return true;
- CONTACT user = { (wchar_t*)one.c_str(), NULL, NULL, false, false, false };
+ CONTACT user = { one, NULL, NULL, false, false, false };
MCONTACT hContact2 = CList_AddContact(&user, false, false);
if (hContact2) {
if (getByte(hContact, "AdvancedMode", 0) == 0)
@@ -613,7 +613,7 @@ BOOL CIrcProto::DoHardcodedCommand(CMStringW text, wchar_t *window, MCONTACT hCo ulAdr = ConvertIPToInteger(m_IPFromServer ? m_myHost : m_myLocalHost);
if (ulAdr) {
- CONTACT user = { (wchar_t*)two.c_str(), NULL, NULL, false, false, true };
+ CONTACT user = { two, NULL, NULL, false, false, true };
MCONTACT ccNew = CList_AddContact(&user, false, false);
if (ccNew) {
CMStringW s;
@@ -664,7 +664,7 @@ BOOL CIrcProto::DoHardcodedCommand(CMStringW text, wchar_t *window, MCONTACT hCo if (ulAdr) {
CMStringW contact = two; contact += DCCSTRING;
- CONTACT user = { (wchar_t*)contact.c_str(), NULL, NULL, false, false, true };
+ CONTACT user = { contact, NULL, NULL, false, false, true };
MCONTACT ccNew = CList_AddContact(&user, false, false);
setByte(ccNew, "DCC", 1);
|