From 02160720a8ed218b391a1f1aebdfcdb5a26aa297 Mon Sep 17 00:00:00 2001 From: Egor Date: Thu, 19 Oct 2023 12:20:23 +0300 Subject: [PATCH] make irc hostname configurable --- config.h | 3 +++ irc.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config.h b/config.h index 5245c54..b59079f 100644 --- a/config.h +++ b/config.h @@ -8,3 +8,6 @@ #ifndef ADMINEMAIL #define ADMINEMAIL "admin@example.com" #endif +#ifndef IRCDHOSTNAME +#define IRCDHOSTNAME "example.com" +#endif diff --git a/irc.c b/irc.c index 17c367d..71164b3 100644 --- a/irc.c +++ b/irc.c @@ -8,7 +8,7 @@ struct trie_node *client_map = NULL; struct trie_node *channel_map = NULL; struct trie_node *autojoin = NULL; -const char *hostname = "irc.patchysicp.xyz"; +const char *hostname = IRCDHOSTNAME; #define is_registered(cl) ((cl)->regstate == REG_REGISTERED) void sendbuf(struct client_data *client) { sendClient(client, databuf.buf, databuf.len); -- 2.56.0