Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/roster.c @ 1431:486809ccffc0
Let /del remove a MUC entry from the roster
(Only users and agents were allowed.)
Reported by didier69.
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 22 Feb 2008 13:27:51 +0100 |
parents | 366ef500c522 |
children | 071c8170b7de |
comparison
equal
deleted
inserted
replaced
1430:12847b0ea8c9 | 1431:486809ccffc0 |
---|---|
432 GSList *sl_user, *sl_group; | 432 GSList *sl_user, *sl_group; |
433 GSList **sl_group_listptr; | 433 GSList **sl_group_listptr; |
434 roster *roster_usr; | 434 roster *roster_usr; |
435 GSList *node; | 435 GSList *node; |
436 | 436 |
437 sl_user = roster_find(jid, jidsearch, ROSTER_TYPE_USER|ROSTER_TYPE_AGENT); | 437 sl_user = roster_find(jid, jidsearch, |
438 ROSTER_TYPE_USER|ROSTER_TYPE_AGENT|ROSTER_TYPE_ROOM); | |
438 if (sl_user == NULL) | 439 if (sl_user == NULL) |
439 return; | 440 return; |
440 roster_usr = (roster*)sl_user->data; | 441 roster_usr = (roster*)sl_user->data; |
441 | 442 |
442 // Remove (if present) from unread messages list | 443 // Remove (if present) from unread messages list |