comparison mcabber/mcabber/xmpp_muc.c @ 2279:f1f24ee1edfc

Cosmetics
author Mikael Berthe <mikael@lilotux.net>
date Sat, 24 Sep 2016 12:30:01 +0200
parents f5402d705f67
children f1eebfdd6db7
comparison
equal deleted inserted replaced
2278:56b0cf821f64 2279:f1f24ee1edfc
294 lm_message_handler_unref(handler); 294 lm_message_handler_unref(handler);
295 lm_message_unref(iq); 295 lm_message_unref(iq);
296 } 296 }
297 297
298 // muc_get_item_info(...) 298 // muc_get_item_info(...)
299 // Get room member's information from xmlndata. 299 // Get room member's information from xmldata.
300 // The variables must be initialized before calling this function, 300 // The variables must be initialized before calling this function,
301 // because they are not touched if the relevant information is missing. 301 // because they are not touched if the relevant information is missing.
302 // Note that *actor should be freed by the caller. 302 // Note that *actor should be freed by the caller.
303 static void muc_get_item_info(const char *from, LmMessageNode *xmldata, 303 static void muc_get_item_info(const char *from, LmMessageNode *xmldata,
304 enum imrole *mbrole, enum imaffiliation *mbaffil, 304 enum imrole *mbrole, enum imaffiliation *mbaffil,
695 if (our_presence || printstatus != status_none) { 695 if (our_presence || printstatus != status_none) {
696 msgflags = HBB_PREFIX_INFO; 696 msgflags = HBB_PREFIX_INFO;
697 flagjoins = buddy_getflagjoins(room_elt->data); 697 flagjoins = buddy_getflagjoins(room_elt->data);
698 if (flagjoins == flagjoins_default && 698 if (flagjoins == flagjoins_default &&
699 settings_opt_get_int("muc_flag_joins") == 2) 699 settings_opt_get_int("muc_flag_joins") == 2)
700 flagjoins = flagjoins_all; 700 flagjoins = flagjoins_all;
701 if (!our_presence && flagjoins != flagjoins_all) 701 if (!our_presence && flagjoins != flagjoins_all)
702 msgflags |= HBB_PREFIX_NOFLAG; 702 msgflags |= HBB_PREFIX_NOFLAG;
703 //silent message if someone else joins, and we care about noone 703 //silent message if someone else joins, and we care about noone
704 scr_WriteIncomingMessage(roomjid, mbuf, usttime, msgflags, 0); 704 scr_WriteIncomingMessage(roomjid, mbuf, usttime, msgflags, 0);
705 } 705 }