summaryrefslogtreecommitdiff
path: root/general_network.c
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2023-08-09 23:15:35 -0400
committerTest_User <hax@andrewyu.org>2023-08-09 23:15:35 -0400
commit0a4de3b7f0159fc44f87996e1d25678e3b456878 (patch)
tree9b584c1e59cb14f432b1425251a7a53f88a02ad3 /general_network.c
parent23003e705b1818d647a89ed415ced1d199561cca (diff)
downloadcoupserv-0a4de3b7f0159fc44f87996e1d25678e3b456878.tar.gz
coupserv-0a4de3b7f0159fc44f87996e1d25678e3b456878.zip
de-hardcode hax.irc.andrewyu.org, place example in config.h
Diffstat (limited to 'general_network.c')
-rw-r--r--general_network.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/general_network.c b/general_network.c
index 86b60ca..475591a 100644
--- a/general_network.c
+++ b/general_network.c
@@ -120,11 +120,15 @@ int PRIVMSG(struct string source, struct string target, struct string message) {
SENDCLIENT(STRING("@"));
SENDCLIENT(hostmask);
} else if (source.len == 3 && memcmp(source.data, "1HC", 3) == 0) {
- SENDCLIENT(STRING(":hax.irc.andrewyu.org "));
+ SENDCLIENT(STRING(":"));
+ SENDCLIENT(server_name);
+ SENDCLIENT(STRING(" "));
}
SENDCLIENT(STRING(" PRIVMSG "));
} else {
- SENDCLIENT(STRING(":hax.irc.andrewyu.org PRIVMSG "));
+ SENDCLIENT(STRING(":"));
+ SENDCLIENT(server_name);
+ SENDCLIENT(STRING(" PRIVMSG "));
}
if (target.len == 9 && memcmp(target.data, "1HC000001", 9) == 0)