]> Pileus Git - ~andy/lamechat/blobdiff - chat.c
Make logfile optional.
[~andy/lamechat] / chat.c
diff --git a/chat.c b/chat.c
index 978da9764d4d3d34dd44d6ea1a5b808949b248d3..b0d008604a221e19e14adae217bc6c87ce858681 100644 (file)
--- a/chat.c
+++ b/chat.c
@@ -186,6 +186,12 @@ void chat_config(const char *group, const char *name, const char *key, const cha
                else
                        proto_config(NULL, NULL, name, group, name, key, value);
        }
+       if (match(group, "autojoin")) {
+               if (match(key, ""))
+                       get_name(name);
+               else
+                       proto_config(NULL, name, key, group, name, key, value);
+       }
 }
 
 void chat_recv(channel_t *channel, user_t *from, const char *text)