summaryrefslogtreecommitdiff
path: root/protocols/IRCG/irclib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG/irclib.cpp')
-rw-r--r--protocols/IRCG/irclib.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/protocols/IRCG/irclib.cpp b/protocols/IRCG/irclib.cpp
index a5d3ad1537..78d33f11dc 100644
--- a/protocols/IRCG/irclib.cpp
+++ b/protocols/IRCG/irclib.cpp
@@ -308,7 +308,6 @@ int CIrcProto::NLSend( const TCHAR* fmt, ...)
return result;
}
-#if defined( _UNICODE )
int CIrcProto::NLSend( const char* fmt, ...)
{
va_list marker;
@@ -320,7 +319,6 @@ int CIrcProto::NLSend( const char* fmt, ...)
return NLSend((unsigned char*)szBuf, cbLen );
}
-#endif
int CIrcProto::NLSendNoScript( const unsigned char* buf, int cbBuf)
{
@@ -355,15 +353,8 @@ void CIrcProto::createMessageFromPchar( const char* p )
{
TCHAR* ptszMsg;
if ( codepage != CP_UTF8 && m_utfAutodetect ) {
- #if defined( _UNICODE )
- if ( mir_utf8decodecp( NEWSTR_ALLOCA(p), codepage, &ptszMsg ) == NULL )
+ if ( mir_utf8decodecp( NEWSTR_ALLOCA(p), codepage, &ptszMsg ) == NULL )
ptszMsg = mir_a2t_cp( p, codepage );
- #else
- if ( mir_utf8decodecp( NEWSTR_ALLOCA(p), codepage, NULL ) == NULL )
- ptszMsg = mir_a2t_cp( p, codepage );
- else
- ptszMsg = mir_strdup( p );
- #endif
}
else ptszMsg = mir_a2t_cp( p, codepage );
CIrcMessage msg( this, ptszMsg, codepage, true );