comparison mcabber/src/screen.c @ 444:5927c3bfba13

Add /status_to command
author Mikael Berthe <mikael@lilotux.net>
date Sun, 25 Sep 2005 00:33:56 +0200
parents b44be19d6229
children 7bf6c0c6a714
comparison
equal deleted inserted replaced
443:d8ddb26b9c14 444:5927c3bfba13
802 if (setaway) { 802 if (setaway) {
803 const char *msg; 803 const char *msg;
804 oldstatus = jb_getstatus(); 804 oldstatus = jb_getstatus();
805 msg = settings_opt_get("message_autoaway"); 805 msg = settings_opt_get("message_autoaway");
806 if (!msg) msg = MSG_AUTOAWAY; 806 if (!msg) msg = MSG_AUTOAWAY;
807 jb_setstatus(away, msg); 807 jb_setstatus(away, NULL, msg);
808 } else { 808 } else {
809 // Back 809 // Back
810 jb_setstatus(oldstatus, NULL); 810 jb_setstatus(oldstatus, NULL, NULL);
811 } 811 }
812 } 812 }
813 813
814 // Check if we should enter/leave automatic away status 814 // Check if we should enter/leave automatic away status
815 void scr_CheckAutoAway(bool activity) 815 void scr_CheckAutoAway(bool activity)