about summary refs log tree commit diff
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
parentHandle KICK (diff)
downloadcatgirl-fda510b8761f487c36988eb70a6d95bd0d583aed.tar.gz
catgirl-fda510b8761f487c36988eb70a6d95bd0d583aed.zip
Handle ID overflow
idk just shove it all in <network>.
Diffstat (limited to '')
-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;
xfce4/terminal/terminalrc?id=75ea82eaaafe6a5189493619bf84b50fe4e2c158&follow=1'>Update location of Xfce4-Terminal configurationJune McEnroe 2013-04-24Update system configurationsJune McEnroe 2013-04-23Fix terminal colorsJune McEnroe 2013-04-14Start xcompmgrJune McEnroe 2013-04-06Drop pacman-color, regular pacman now has colorJune McEnroe 2013-04-06Restore wallpaper automaticallyJune McEnroe 2013-03-22Simplify autostartJune McEnroe 2013-02-24Default to Ruby 2.0June McEnroe 2013-01-26Make pretty riplrcJune McEnroe 2013-01-26Default to awesome sessionJune McEnroe 2013-01-26Add git promptJune McEnroe 2013-01-26Actually port awesome config to 3.5June McEnroe 2013-01-26Make pretty zshrcJune McEnroe 2013-01-26Port awesome config to 3.5June McEnroe 2013-01-26Replace RVM with chrubyJune McEnroe