aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-15 05:34:32 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-15 05:34:32 -0400
commite237b6858830f9d8355b7ae91506bf6af3f15009 (patch)
treece7150380522af2d52f7bc0cb43455f18b40d377 /src
parentffebfdcc4f37d905ccb1a21105e2998b5af9bc55 (diff)
downloadfujinet-chat-e237b6858830f9d8355b7ae91506bf6af3f15009.tar.gz
Embed git hash and build host in binary.
Diffstat (limited to 'src')
-rw-r--r--src/irc.c6
-rw-r--r--src/main.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/src/irc.c b/src/irc.c
index 49eea56..cd11ba8 100644
--- a/src/irc.c
+++ b/src/irc.c
@@ -14,6 +14,10 @@
#include "nio.h"
#include "config.h"
+#ifndef VERSION
+#define VERSION "?????"
+#endif
+
#define MAX_MSG 512
char *msg_src, *msg_cmd, *msg_dest, *msg_text;
@@ -203,7 +207,7 @@ static void do_ctcp(int is_notice) {
} else if(streq_i(ctcp_type, "CLIENTINFO")) {
resp = "PING VERSION CLIENTINFO";
} else if(streq_i(ctcp_type, "VERSION")) {
- resp = "FujiNetChat pre-alpha on an Atari 8-bit";
+ resp = "FujiNetChat (" VERSION "; Atari 8-bit)";
} else {
/* unknown CTCP type, ignore */
return;
diff --git a/src/main.c b/src/main.c
index e5df909..60313d2 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,8 +1,10 @@
/* FujiNetChat, an IRC client. Based on NetCat and the old FujiChat. */
+/*
#define SELF "FujiNetChat"
#define VERSION "0.0"
#define BANNER SELF " v" VERSION " (B. Watson)\n"
+*/
#include <atari.h>
#include <stdlib.h>