summaryrefslogtreecommitdiff
path: root/modules/protocol/ngircd.cpp
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-03-09 12:29:59 -0500
committerAdam <Adam@anope.org>2011-03-09 12:29:59 -0500
commit09a5791bc63d11f327efee56762ed603dec9b359 (patch)
tree5151f8a4863690b3195bc859fc0d2773ea67be6d /modules/protocol/ngircd.cpp
parent8db5ecd7363b3f807d7ccd8e5b150a13446474f5 (diff)
ngIRCd protocol: announce Anope with its version
Diffstat (limited to 'modules/protocol/ngircd.cpp')
-rw-r--r--modules/protocol/ngircd.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/protocol/ngircd.cpp b/modules/protocol/ngircd.cpp
index 26babf995..7f4f4f9f1 100644
--- a/modules/protocol/ngircd.cpp
+++ b/modules/protocol/ngircd.cpp
@@ -11,6 +11,7 @@
#include "services.h"
#include "modules.h"
+#include "version.h"
IRCDVar myIrcd[] = {
{"ngIRCd", /* ircd name */
@@ -79,7 +80,7 @@ class ngIRCdProto : public IRCDProto
void SendConnect()
{
- send_cmd("", "PASS %s 0210-IRC+ Anope|17~9:CLHSo P", uplink_server->password.c_str());
+ send_cmd("", "PASS %s 0210-IRC+ Anope|%d.%d.%d:CLHSo P", uplink_server->password.c_str(), VERSION_MAJOR, VERSION_MINOR, VERSION_PATCH);
/* Make myself known to myself in the serverlist */
SendServer(Me);
/* finish the enhanced server handshake and register the connection */