cdidier / irssi-xmpp

irssi-xmpp is an irssi plugin to connect to the Jabber network.
GNU General Public License v2.0
69 stars 22 forks source link

assertion triggered after upgrading to ejabberd 17.x #21

Closed darix closed 7 years ago

darix commented 7 years ago

The subscription attribute can be optional if no subscription exists according to https://github.com/processone/ejabberd/issues/1590 .

it seems the assert should be changed to a normal if then?

https://github.com/cdidier/irssi-xmpp/blob/master/src/core/rosters.c#L276

cdidier commented 7 years ago

The first "if (..." should be changed to "if (subscription == NULL || .." to set the subscription to NONE.

darix commented 7 years ago

while we are at it could we also fix

15:43:51 -!- Irssi: critical Source ID 1 was not found when attempting to remove it

cdidier commented 7 years ago

Fixed with 2c5560286530e2b5fb2b5688198cc71c9270c1f8.