diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-03-15 05:34:32 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-03-15 05:34:32 -0400 |
| commit | e237b6858830f9d8355b7ae91506bf6af3f15009 (patch) | |
| tree | ce7150380522af2d52f7bc0cb43455f18b40d377 /src | |
| parent | ffebfdcc4f37d905ccb1a21105e2998b5af9bc55 (diff) | |
| download | fujinet-chat-e237b6858830f9d8355b7ae91506bf6af3f15009.tar.gz | |
Embed git hash and build host in binary.
Diffstat (limited to 'src')
| -rw-r--r-- | src/irc.c | 6 | ||||
| -rw-r--r-- | src/main.c | 2 |
2 files changed, 7 insertions, 1 deletions
@@ -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; @@ -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> |
