summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-02-08 01:14:41 -0500
committerJune McEnroe <june@causal.agency>2020-02-08 01:14:41 -0500
commitfda510b8761f487c36988eb70a6d95bd0d583aed (patch)
treefa9ee4f4ef8ce2c3d8daca8e0b66bff9a25bb6b3 /chat.h
parentHandle KICK (diff)
downloadcatgirl-fda510b8761f487c36988eb70a6d95bd0d583aed.tar.gz
catgirl-fda510b8761f487c36988eb70a6d95bd0d583aed.zip
Handle ID overflow
idk just shove it all in <network>.
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index bd36d27..081370e 100644
--- a/chat.h
+++ b/chat.h
@@ -49,6 +49,7 @@ static inline size_t idFind(const char *name) {
 static inline size_t idFor(const char *name) {
 	size_t id = idFind(name);
 	if (id) return id;
+	if (idNext == IDCap) return Network;
 	idNames[idNext] = strdup(name);
 	if (!idNames[idNext]) err(EX_OSERR, "strdup");
 	idColors[idNext] = Default;
John Keeping 2013-05-22html.c: die when write failsJohn Keeping 2013-05-22ui-log: add <span/> around commit decorationsJohn Keeping 2013-05-22Makefile: fix parallel "make test"John Keeping 2013-05-18cache.c: fix cache_lsJohn Keeping 2013-05-13t0109: "function" is a bash-ismJohn Keeping 2013-05-13New mailing list.Jason A. Donenfeld 2013-04-30ui-snapshot: do not access $HOMEJason A. Donenfeld 2013-04-27t0001: validate Git -rcN version numbers correctlyJohn Keeping 2013-04-27git: update to 1.8.2.2John Keeping 2013-04-17scan-tree: fix regression in section-from-path=-1John Keeping 2013-04-15t0001: ignore ".dirty" suffix on Git versionJohn Keeping 2013-04-15tests: set TEST_OUTPUT_DIRECTORY to the CGit test directoryJohn Keeping 2013-04-15t0109: test more URLsJohn Keeping 2013-04-10cgitrc.5.txt: Specify when scan-path must be defined before.Jason A. Donenfeld 2013-04-10ui-snapshot.c: Prepend "V" when guessing ref namesLukas Fleischer 2013-04-10t0107: Skip ZIP tests if unzip(1) isn't availableLukas Fleischer 2013-04-10tests/: Do not use `sed -i`Lukas Fleischer 2013-04-10Add branch-sort and repo.branch-sort options.Jason A. Donenfeld 2013-04-10t0109: chain operations with &&John Keeping 2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer