diff options
author | George Hazan <george.hazan@gmail.com> | 2012-08-03 13:02:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-08-03 13:02:30 +0000 |
commit | 3c5f60a5dc438523934fa598bfeb537056ad2470 (patch) | |
tree | 357df4f85dfd31cb3e4433f42c705dddc01bf3fb /protocols/IRCG | |
parent | d06e75fd7b0b11aa92fa075fdf30cec05d7a01f3 (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')
-rw-r--r-- | protocols/IRCG/input.cpp | 7 | ||||
-rw-r--r-- | protocols/IRCG/irc.h | 1 |
2 files changed, 4 insertions, 4 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));
diff --git a/protocols/IRCG/irc.h b/protocols/IRCG/irc.h index 34d639259b..9fe6584d87 100644 --- a/protocols/IRCG/irc.h +++ b/protocols/IRCG/irc.h @@ -73,7 +73,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "m_chat.h"
#include "m_icolib.h"
#include "m_ircscript.h"
-#include "m_version.h"
#include "win2k.h"
#include "resource.h"
|