summaryrefslogtreecommitdiff
path: root/protocols/IRCG/input.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-08-03 13:02:30 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-08-03 13:02:30 +0000
commit3c5f60a5dc438523934fa598bfeb537056ad2470 (patch)
tree357df4f85dfd31cb3e4433f42c705dddc01bf3fb /protocols/IRCG/input.cpp
parentd06e75fd7b0b11aa92fa075fdf30cec05d7a01f3 (diff)
m_version.h => MS_SYSTEM_GETVERSION[TEXT]
git-svn-id: http://svn.miranda-ng.org/main/trunk@1337 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/IRCG/input.cpp')
-rw-r--r--protocols/IRCG/input.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/protocols/IRCG/input.cpp b/protocols/IRCG/input.cpp
index 88c980149d..c564b7844c 100644
--- a/protocols/IRCG/input.cpp
+++ b/protocols/IRCG/input.cpp
@@ -162,7 +162,7 @@ CMString CIrcProto::DoAlias( const TCHAR *text, TCHAR *window)
CMString CIrcProto::DoIdentifiers( CMString text, const TCHAR* )
{
SYSTEMTIME time;
- TCHAR str[100];
+ TCHAR str[2];
GetLocalTime( &time );
ReplaceString( text, _T("%mnick"), m_nick);
@@ -174,8 +174,9 @@ CMString CIrcProto::DoIdentifiers( CMString text, const TCHAR* )
ReplaceString( text, _T("%network"), m_info.sNetwork.c_str());
ReplaceString( text, _T("%me"), m_info.sNick.c_str());
- mir_sntprintf( str, SIZEOF(str), _T("%d.%d.%d.%d"), MIRANDA_VERSION_FILEVERSION);
- ReplaceString(text, _T("%mirver"), str);
+ char mirver[100];
+ CallService(MS_SYSTEM_GETVERSIONTEXT, SIZEOF(mirver), LPARAM(mirver));
+ ReplaceString(text, _T("%mirver"), _A2T(mirver));
ReplaceString(text, _T("%version"), _T(__VERSION_STRING));