From ca890a3d7661991f0a9269106cf2611bcc048d16 Mon Sep 17 00:00:00 2001 From: Treeki Date: Fri, 14 Feb 2014 04:42:53 +0100 Subject: oh right, this thing has a name now --- bouncer/build.sh | 2 +- bouncer/build_static.sh | 2 +- bouncer/core.h | 3 +++ bouncer/ircserver.cpp | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) (limited to 'bouncer') diff --git a/bouncer/build.sh b/bouncer/build.sh index be4826d..ea72e35 100755 --- a/bouncer/build.sh +++ b/bouncer/build.sh @@ -5,5 +5,5 @@ NETCODE="socketcommon.cpp client.cpp mobileclient.cpp server.cpp ircserver.cpp n SOURCES="$NETCODE main.cpp window.cpp dns.cpp ini.cpp richtext.cpp" FLAGS="-std=c++11 -DUSE_GNUTLS -lgnutls -pthread -g" -g++ -o binary/nb4 $FLAGS $SOURCES +g++ -o binary/vulpircd $FLAGS $SOURCES diff --git a/bouncer/build_static.sh b/bouncer/build_static.sh index 5807c1f..01b951c 100755 --- a/bouncer/build_static.sh +++ b/bouncer/build_static.sh @@ -5,5 +5,5 @@ NETCODE="socketcommon.cpp client.cpp mobileclient.cpp server.cpp ircserver.cpp n SOURCES="$NETCODE main.cpp window.cpp dns.cpp ini.cpp richtext.cpp" FLAGS="-static -static-libgcc -static-libstdc++ -std=c++11 -pthread" -g++ -o binary/nb4_static $FLAGS $SOURCES +g++ -o binary/vulpircd_static $FLAGS $SOURCES diff --git a/bouncer/core.h b/bouncer/core.h index 28b99f2..0f99d82 100644 --- a/bouncer/core.h +++ b/bouncer/core.h @@ -1,6 +1,9 @@ #ifndef CORE_H #define CORE_H +// CTCP version reply +#define VULPIRC_VERSION_STRING "VulpIRC 0.0.0" + // Set in build.sh //#define USE_GNUTLS diff --git a/bouncer/ircserver.cpp b/bouncer/ircserver.cpp index 652edeb..7ef6795 100644 --- a/bouncer/ircserver.cpp +++ b/bouncer/ircserver.cpp @@ -355,7 +355,7 @@ void IRCServer::lineReceivedEvent(char *line, int size) { if (strcmp(ctcpType, "VERSION") == 0) { char reply[1000]; snprintf(reply, sizeof(reply), - "NOTICE %s :\x01VERSION boop:boop:boop\x01", + "NOTICE %s :\x01VERSION " VULPIRC_VERSION_STRING "\x01", user.nick.c_str()); sendLine(reply); -- cgit v1.2.3