summary refs log tree commit diff
path: root/ircd.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-13 00:19:07 +0300
committerNakidai <nakidai@disroot.org>2026-02-13 00:19:07 +0300
commit3f2bbeda9cae1e3d3f50d984549c82a5a29d2f6f (patch)
treea116461d3102fdf2be87bd033780873f9cd55c8f /ircd.h
parent83c7d5f26cc3dcc93967a694b6b07447e839d6c1 (diff)
downloadlibreircd-3f2bbeda9cae1e3d3f50d984549c82a5a29d2f6f.tar.gz
libreircd-3f2bbeda9cae1e3d3f50d984549c82a5a29d2f6f.zip
Add SETHOSTNAME command
Also remove hostname argument from the cli. It'd be better to have it
in a config file rather than passing through an argument, it was like
that since times config file didn't exist, but time has changed
Diffstat (limited to 'ircd.h')
-rw-r--r--ircd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ircd.h b/ircd.h
index d4ed678..7b59330 100644
--- a/ircd.h
+++ b/ircd.h
@@ -98,10 +98,10 @@ typedef int Handler(struct Message *msg, struct Peer *peer);
 extern struct Channel channels[CHANNELS_MAX];
 extern struct Peer peers[PEERS_MAX];
 extern size_t channels_c, peers_c;
-extern const char *hostname;
 extern const char *host;
 extern unsigned long port;
 extern char creation[CREATION_MAX];
+extern char hostname[HOSTNAME_MAX];
 extern char info[INFO_MAX];
 
 int readcfg(const char *path);