comparison mcabber/src/jabglue.c @ 861:e1adea19ba14

Cosmetic changes
author Mikael Berthe <mikael@lilotux.net>
date Sun, 21 May 2006 09:49:04 +0200
parents cb2a3a1d985f
children 5ed97fc7afa0
comparison
equal deleted inserted replaced
860:a8fadbd97858 861:e1adea19ba14
321 } 321 }
322 322
323 void jb_setstatus(enum imstatus st, const char *recipient, const char *msg) 323 void jb_setstatus(enum imstatus st, const char *recipient, const char *msg)
324 { 324 {
325 xmlnode x; 325 xmlnode x;
326 struct T_presence room_presence;
327 326
328 if (!online) return; 327 if (!online) return;
329 328
330 if (msg) { 329 if (msg) {
331 // The status message has been specified. We'll use it, unless it is 330 // The status message has been specified. We'll use it, unless it is
353 // If we didn't change our _global_ status, we are done 352 // If we didn't change our _global_ status, we are done
354 if (recipient) return; 353 if (recipient) return;
355 354
356 // Send presence to chatrooms 355 // Send presence to chatrooms
357 if (st != invisible) { 356 if (st != invisible) {
357 struct T_presence room_presence;
358 room_presence.st = st; 358 room_presence.st = st;
359 room_presence.msg = msg; 359 room_presence.msg = msg;
360 foreach_buddy(ROSTER_TYPE_ROOM, &roompresence, &room_presence); 360 foreach_buddy(ROSTER_TYPE_ROOM, &roompresence, &room_presence);
361 } 361 }
362 362