summaryrefslogtreecommitdiff
path: root/protocols/IRCG
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/input.cpp7
-rw-r--r--protocols/IRCG/irc.h1
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"