equal
deleted
inserted
replaced
785 while (iel) { |
785 while (iel) { |
786 event_muc_invitation *invitation = iel->data; |
786 event_muc_invitation *invitation = iel->data; |
787 iel = iel -> next; |
787 iel = iel -> next; |
788 if (!g_strcmp0(to, invitation->to) && |
788 if (!g_strcmp0(to, invitation->to) && |
789 !g_strcmp0(passwd, invitation->passwd)) { |
789 !g_strcmp0(passwd, invitation->passwd)) { |
|
790 // found a previous invitation |
|
791 // We keep the old one, unless the current one is better and allows us |
|
792 // to send a reply. |
|
793 if (!reply || invitation->reply) { |
|
794 g_free(barejid); |
|
795 return; |
|
796 } |
790 scr_LogPrint(LPRINT_DEBUG, "Destroying previous invitation event %s.", |
797 scr_LogPrint(LPRINT_DEBUG, "Destroying previous invitation event %s.", |
791 invitation->evid); |
798 invitation->evid); |
792 evs_del(invitation->evid); |
799 evs_del(invitation->evid); |
793 } |
800 } |
794 } |
801 } |