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)
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) {