comparison mcabber/src/jabglue.c @ 1419:fb438482b28e

New option to customize the away/notavail priority (Michael Gehring) This patch adds an option 'priority_away'. Slightly modified to include the not-available (xa) status.
author Mikael Berthe <mikael@lilotux.net>
date Tue, 12 Feb 2008 20:32:37 +0100
parents 317f8d181626
children a64778f5f26b
comparison
equal deleted inserted replaced
1418:f69028ca6296 1419:fb438482b28e
426 426
427 default: 427 default:
428 break; 428 break;
429 } 429 }
430 430
431 prio = settings_opt_get_int("priority"); 431 if (st == away || st == notavail)
432 prio = settings_opt_get_int("priority_away");
433 else
434 prio = settings_opt_get_int("priority");
435
432 if (prio) { 436 if (prio) {
433 char strprio[8]; 437 char strprio[8];
434 snprintf(strprio, 8, "%d", (int)prio); 438 snprintf(strprio, 8, "%d", (int)prio);
435 xmlnode_insert_cdata(xmlnode_insert_tag(x, "priority"), 439 xmlnode_insert_cdata(xmlnode_insert_tag(x, "priority"),
436 strprio, (unsigned) -1); 440 strprio, (unsigned) -1);