about summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-23 13:13:43 -0400
committerJune McEnroe <june@causal.agency>2020-03-23 13:25:10 -0400
commitcf1545870af2de418a6bccd4461f92330dc2f605 (patch)
tree48f674ba07d1d7e8fd223bc357abdf645b441803 /chat.c
parentImplement message splitting (diff)
downloadcatgirl-cf1545870af2de418a6bccd4461f92330dc2f605.tar.gz
catgirl-cf1545870af2de418a6bccd4461f92330dc2f605.zip
Assume worst case for unknown user and host in splitMessage
The default USERLEN of 9 doesn't have a great source, the RFC only says
that nicks are length 9, so my assumption is that usernames are not
longer.
Diffstat (limited to '')
-rw-r--r--chat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/chat.c b/chat.c
index e998812..9e3e374 100644
--- a/chat.c
+++ b/chat.c
@@ -64,7 +64,7 @@ enum Color idColors[IDCap] = {
 };
 uint idNext = Network + 1;
 
-struct Network network;
+struct Network network = { .userLen = 9, .hostLen = 63 };
 struct Self self = { .color = Default };
 
 static const char *save;