]> Pileus Git - ~andy/lamechat/blobdiff - chat.c
Make logfile optional.
[~andy/lamechat] / chat.c
diff --git a/chat.c b/chat.c
index 0613863c16ab6a1fe44438af86747a4fb76d9ad2..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)
@@ -204,6 +210,18 @@ void chat_recv(channel_t *channel, user_t *from, const char *text)
        view_draw();
 }
 
+void chat_complete(channel_t *channel, const char *text)
+{
+       switch (channel->server->protocol) {
+               case IRC:
+                       irc_complete(channel, text);
+                       break;
+               case XMPP:
+                       xmpp_complete(channel, text);
+                       break;
+       }
+}
+
 void chat_send(channel_t *channel, const char *text)
 {
        switch (channel->server->protocol) {