diff options
author | James Booth <boothj5@gmail.com> | 2012-11-07 00:02:43 +0000 |
---|---|---|
committer | James Booth <boothj5@gmail.com> | 2012-11-07 00:02:43 +0000 |
commit | 7c85f0fcb20254867e4ad2f96d4f336523c09db6 (patch) | |
tree | ad5531f1eb178f2c41657b016500a39bbe310d09 /src/jabber.c | |
parent | 3436a2245d308373068a1be8b9826fd7d3cf0ada (diff) | |
download | profani-tty-7c85f0fcb20254867e4ad2f96d4f336523c09db6.tar.gz |
room_chat: rename room_is_active
Diffstat (limited to 'src/jabber.c')
-rw-r--r-- | src/jabber.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/jabber.c b/src/jabber.c index a139dedc..b3a1b9af 100644 --- a/src/jabber.c +++ b/src/jabber.c @@ -375,14 +375,11 @@ static int _message_handler(xmpp_conn_t * const conn, xmpp_stanza_t * const stanza, void * const userdata) { - char *type = NULL; - char *from = NULL; - - type = xmpp_stanza_get_attribute(stanza, "type"); - from = xmpp_stanza_get_attribute(stanza, "from"); + gchar *type = xmpp_stanza_get_attribute(stanza, "type"); + gchar *from = xmpp_stanza_get_attribute(stanza, "from"); // handle groupchat messages - if (room_jid_is_room_chat(from)) { + if (room_is_active(from)) { xmpp_stanza_t *delay = xmpp_stanza_get_child_by_name(stanza, "delay"); // handle chat room history @@ -633,7 +630,7 @@ _presence_handler(xmpp_conn_t * const conn, char *from = xmpp_stanza_get_attribute(stanza, "from"); - if (room_jid_is_room_chat(from)) { + if (room_is_active(from)) { char **tokens = g_strsplit(from, "/", 0); char *room_jid = tokens[0]; char *nick = tokens[1]; |