Handle ID overflow

idk just shove it all in <network>.
master
C. McEnroe 2020-02-08 01:14:41 -05:00
parent b5707af4b8
commit fda510b876
1 changed files with 1 additions and 0 deletions

1
chat.h
View File

@ -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;