summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp4
1 files changed, 2 insertions, 2 deletions
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);