diff options
author | Treeki <treeki@gmail.com> | 2014-02-14 04:42:53 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2014-02-14 04:42:53 +0100 |
commit | ca890a3d7661991f0a9269106cf2611bcc048d16 (patch) | |
tree | b04a6a1e82f349f2f676ff8c163b3b1a27643602 /bouncer | |
parent | f07f7dd153d6c605e98143c594d2a578457a724e (diff) | |
download | bounce4-ca890a3d7661991f0a9269106cf2611bcc048d16.tar.gz bounce4-ca890a3d7661991f0a9269106cf2611bcc048d16.zip |
oh right, this thing has a name now
Diffstat (limited to 'bouncer')
-rwxr-xr-x | bouncer/build.sh | 2 | ||||
-rwxr-xr-x | bouncer/build_static.sh | 2 | ||||
-rw-r--r-- | bouncer/core.h | 3 | ||||
-rw-r--r-- | bouncer/ircserver.cpp | 2 |
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); |