summaryrefslogtreecommitdiff
path: root/bouncer
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xbouncer/build.sh2
-rwxr-xr-xbouncer/build_static.sh2
-rw-r--r--bouncer/core.h3
-rw-r--r--bouncer/ircserver.cpp2
4 files changed, 6 insertions, 3 deletions
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);