From 350d6db395f1d681af441c89090a5189c15f751e Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 22 May 2005 02:26:54 +0000 Subject: Changed revision id's to std::string git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1472 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/commands.cpp') diff --git a/src/commands.cpp b/src/commands.cpp index 87d6db0f0..5ba8440d9 100644 --- a/src/commands.cpp +++ b/src/commands.cpp @@ -3283,9 +3283,9 @@ void handle_link_packet(char* tcp_msg, char* tcp_host, serverrec *serv,char* tcp return; } - if (atoi(revision) != GetRevision()) + if (std::string(revision) != GetRevision()) { - WriteOpers("CONNECT aborted: Could not link to %s, is an incompatible version %s, our version is %d",servername,revision,GetRevision()); + WriteOpers("CONNECT aborted: Could not link to %s, is an incompatible version %s, our version is %s",servername,revision,GetRevision().c_str()); char buffer[MAXBUF]; snprintf(buffer,MAXBUF,"E :Version number mismatch"); serv->SendPacket(buffer,tcp_host); -- cgit v1.2.3