diff options
Diffstat (limited to 'protocols/IRCG/ircproto.cpp')
-rw-r--r-- | protocols/IRCG/ircproto.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/protocols/IRCG/ircproto.cpp b/protocols/IRCG/ircproto.cpp index 1d72f2ac88..f167eddad6 100644 --- a/protocols/IRCG/ircproto.cpp +++ b/protocols/IRCG/ircproto.cpp @@ -859,12 +859,7 @@ int __cdecl CIrcProto::SendMsg( HANDLE hContact, int flags, const char* pszSrc ) else result = mir_a2t_cp( pszSrc, codepage );
}
else if ( flags & PREF_UTF ) {
- #if defined( _UNICODE )
- mir_utf8decode( NEWSTR_ALLOCA(pszSrc), &result );
- #else
- result = mir_strdup( pszSrc );
- mir_utf8decodecp( result, codepage, NULL );
- #endif
+ mir_utf8decode( NEWSTR_ALLOCA(pszSrc), &result );
}
else result = mir_a2t_cp( pszSrc, codepage );
|