Mercurial > ~mikael > mcabber > hg
diff mcabber/mcabber/xmpp_muc.c @ 1684:95df4ea512c8
Provide xmpp_is_online()
author | Myhailo Danylenko <isbear@ukrpost.net> |
---|---|
date | Tue, 19 Jan 2010 19:16:38 +0200 |
parents | d1e8fb14ce2d |
children | 1342df44c814 |
line wrap: on
line diff
--- a/mcabber/mcabber/xmpp_muc.c Tue Jan 19 16:09:27 2010 +0200 +++ b/mcabber/mcabber/xmpp_muc.c Tue Jan 19 19:16:38 2010 +0200 @@ -113,7 +113,7 @@ gchar *roomid; GSList *room_elt; - if (!lconnection || !lm_connection_is_authenticated(lconnection) || !room) + if (!xmpp_is_online() || !room) return; if (!nickname) return; @@ -162,7 +162,7 @@ LmMessage *msg; LmMessageNode *x, *y; - if (!lconnection || !lm_connection_is_authenticated(lconnection) || !room || !fjid) + if (!xmpp_is_online() || !room || !fjid) return; msg = lm_message_new(room, LM_MESSAGE_TYPE_MESSAGE); @@ -188,7 +188,7 @@ LmMessage *iq; LmMessageNode *query, *x; - if (!lconnection || !lm_connection_is_authenticated(lconnection) || !roomid) + if (!xmpp_is_online() || !roomid) return 1; if (!fjid && !nick) return 1; @@ -238,7 +238,7 @@ LmMessageNode *node; LmMessage *iq; - if (!lconnection || !lm_connection_is_authenticated(lconnection) || !room) + if (!xmpp_is_online() || !room) return; iq = lm_message_new_with_sub_type(room, LM_MESSAGE_TYPE_IQ, @@ -262,7 +262,7 @@ LmMessage *iq; LmMessageNode *query, *x; - if (!lconnection || !lm_connection_is_authenticated(lconnection) || !room) + if (!xmpp_is_online() || !room) return; iq = lm_message_new_with_sub_type(room, LM_MESSAGE_TYPE_IQ,