[Telepathy-commits] [telepathy-gabble/master] muc-channel: no need to check if the item node is present, muc-factory does it for us now
Guillaume Desmottes
guillaume.desmottes at collabora.co.uk
Fri Oct 24 06:11:44 PDT 2008
---
src/muc-channel.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
diff --git a/src/muc-channel.c b/src/muc-channel.c
index ed58b3b..97e06fe 100644
--- a/src/muc-channel.c
+++ b/src/muc-channel.c
@@ -1828,11 +1828,8 @@ _gabble_muc_channel_member_presence_updated (GabbleMucChannel *chan,
mixin = TP_GROUP_MIXIN (chan);
item_node = lm_message_node_get_child (x_node, "item");
- if (item_node == NULL)
- {
- g_warning ("%s: node missing 'item' child, ignoring", G_STRFUNC);
- return;
- }
+ /* muc-factory already checked that */
+ g_assert (item_node != NULL);
node = lm_message_node_get_child (x_node, "status");
if (node)
--
1.5.6.5
More information about the Telepathy-commits
mailing list