Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/xmpp.c @ 1976:e6beab22099b
Do not add items to roster with commands /move and /rename (Hermitifier)
Do not add items to roster with commands /move and /rename.
For MUC, store relevant information in the bookmark.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Thu, 24 Mar 2011 20:53:08 +0100 |
parents | 45f0f0f60656 |
children | 6febc7d1f760 |
comparison
equal
deleted
inserted
replaced
1975:a23799244335 | 1976:e6beab22099b |
---|---|
2135 // Update the private storage bookmarks: add a conference room. | 2135 // Update the private storage bookmarks: add a conference room. |
2136 // If name is nil, we remove the bookmark. | 2136 // If name is nil, we remove the bookmark. |
2137 void xmpp_set_storage_bookmark(const char *roomid, const char *name, | 2137 void xmpp_set_storage_bookmark(const char *roomid, const char *name, |
2138 const char *nick, const char *passwd, | 2138 const char *nick, const char *passwd, |
2139 int autojoin, enum room_printstatus pstatus, | 2139 int autojoin, enum room_printstatus pstatus, |
2140 enum room_autowhois awhois) | 2140 enum room_autowhois awhois, const char *group) |
2141 { | 2141 { |
2142 LmMessageNode *x; | 2142 LmMessageNode *x; |
2143 bool changed = FALSE; | 2143 bool changed = FALSE; |
2144 | 2144 |
2145 if (!roomid) | 2145 if (!roomid) |
2186 lm_message_node_add_child(x, "print_status", strprintstatus[pstatus]); | 2186 lm_message_node_add_child(x, "print_status", strprintstatus[pstatus]); |
2187 if (awhois) | 2187 if (awhois) |
2188 lm_message_node_set_attributes(x, "autowhois", | 2188 lm_message_node_set_attributes(x, "autowhois", |
2189 (awhois == autowhois_on) ? "1" : "0", | 2189 (awhois == autowhois_on) ? "1" : "0", |
2190 NULL); | 2190 NULL); |
2191 if (group) | |
2192 lm_message_node_add_child(x, "group", group); | |
2191 changed = TRUE; | 2193 changed = TRUE; |
2192 scr_LogPrint(LPRINT_LOGNORM, "Updating bookmarks..."); | 2194 scr_LogPrint(LPRINT_LOGNORM, "Updating bookmarks..."); |
2193 } | 2195 } |
2194 | 2196 |
2195 if (!changed) | 2197 if (!changed) |