parent
b5707af4b8
commit
fda510b876
1
chat.h
1
chat.h
|
@ -49,6 +49,7 @@ static inline size_t idFind(const char *name) {
|
||||||
static inline size_t idFor(const char *name) {
|
static inline size_t idFor(const char *name) {
|
||||||
size_t id = idFind(name);
|
size_t id = idFind(name);
|
||||||
if (id) return id;
|
if (id) return id;
|
||||||
|
if (idNext == IDCap) return Network;
|
||||||
idNames[idNext] = strdup(name);
|
idNames[idNext] = strdup(name);
|
||||||
if (!idNames[idNext]) err(EX_OSERR, "strdup");
|
if (!idNames[idNext]) err(EX_OSERR, "strdup");
|
||||||
idColors[idNext] = Default;
|
idColors[idNext] = Default;
|
||||||
|
|
Loading…
Reference in New Issue