From 42d106260b5e881aad7bc4cf6c73ffb1b30b5abb Mon Sep 17 00:00:00 2001 From: "C. McEnroe" Date: Sat, 15 Feb 2020 04:54:53 -0500 Subject: Separate network info from self --- chat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'chat.c') diff --git a/chat.c b/chat.c index fd1d33e..318a379 100644 --- a/chat.c +++ b/chat.c @@ -65,6 +65,7 @@ enum Color idColors[IDCap] = { size_t idNext = Network + 1; +struct Network network; struct Self self = { .color = Default }; static const char *save; @@ -187,10 +188,10 @@ int main(int argc, char *argv[]) { if (!user) user = nick; if (!real) real = nick; + set(&network.name, host); + set(&network.chanTypes, "#&"); + set(&network.prefixes, "@+"); set(&self.nick, "*"); - set(&self.network, host); - set(&self.chanTypes, "#&"); - set(&self.prefixes, "@+"); commandComplete(); FILE *certFile = NULL; -- cgit 1.4.1