comparison mcabber/src/jabglue.c @ 677:633a0522bd37

Using "/status invisible -" did not clear the status message Thanks to pmw for the report. Now the general status message is updated even when the requested status is "invisible".
author Mikael Berthe <mikael@lilotux.net>
date Sat, 28 Jan 2006 11:07:02 +0100
parents c5da36fd437a
children e175f5d96f04
comparison
equal deleted inserted replaced
676:80d4959422ca 677:633a0522bd37
345 else 345 else
346 msg = ""; 346 msg = "";
347 } 347 }
348 } 348 }
349 349
350 x = presnew(st, recipient, msg); 350 x = presnew(st, recipient, (st != invisible ? msg : NULL));
351 jab_send(jc, x); 351 jab_send(jc, x);
352 xmlnode_free(x); 352 xmlnode_free(x);
353 353
354 // If we didn't change our _global_ status, we are done 354 // If we didn't change our _global_ status, we are done
355 if (recipient) return; 355 if (recipient) return;
364 // We'll need to update the roster if we switch to/from offline because 364 // We'll need to update the roster if we switch to/from offline because
365 // we don't know the presences of buddies when offline... 365 // we don't know the presences of buddies when offline...
366 if (mystatus == offline || st == offline) 366 if (mystatus == offline || st == offline)
367 update_roster = TRUE; 367 update_roster = TRUE;
368 368
369 hk_mystatuschange(0, mystatus, st, msg); 369 hk_mystatuschange(0, mystatus, st, (st != invisible ? msg : ""));
370 mystatus = st; 370 mystatus = st;
371 if (msg != mystatusmsg) { 371 if (msg != mystatusmsg) {
372 if (mystatusmsg) 372 if (mystatusmsg)
373 g_free(mystatusmsg); 373 g_free(mystatusmsg);
374 if (*msg) 374 if (*msg)