Mercurial > ~mikael > mcabber > hg
view mcabber/mcabber/xmpp_muc.h @ 2358:b010ffcae282
Don't crash on presence from bare room JID
While handling MUC presence, check whether it was sent from the bare
room JID before assuming a non-NULL resource name. These days, some
servers send presence from the bare room JID to handle MUC avatars.
author | Holger Weiß <holger@zedat.fu-berlin.de> |
---|---|
date | Tue, 22 Oct 2019 19:59:21 +0200 |
parents | ffd0e57e9563 |
children |
line wrap: on
line source
#ifndef __MCABBER_XMPP_MUC_H__ #define __MCABBER_XMPP_MUC_H__ 1 typedef struct { char *to; char *from; char *passwd; char *reason; char *evid; gboolean reply; } event_muc_invitation_t; void destroy_event_muc_invitation(event_muc_invitation_t *invitation); void roompresence(gpointer room, void *presencedata); void got_invite(const char* from, const char *to, const char* reason, const char* passwd, gboolean reply); void got_muc_message(const char *from, LmMessageNode *x, time_t timestamp); void handle_muc_presence(const char *from, LmMessageNode * xmldata, const char *roomjid, const char *rname, enum imstatus ust, const char *ustmsg, time_t usttime, char bpprio); #endif /* __MCABBER_XMPP_MUC_H__ */ /* vim: set et cindent cinoptions=>2\:2(0 ts=2 sw=2: For Vim users... */