# HG changeset patch # User Mikael Berthe # Date 1202844757 -3600 # Node ID fb438482b28e27048564bc06ce19ee340814e613 # Parent f69028ca629617eec97cd78adbec1dc480aa97a1 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. diff -r f69028ca6296 -r fb438482b28e mcabber/mcabberrc.example --- a/mcabber/mcabberrc.example Wed Jan 23 19:45:51 2008 +0100 +++ b/mcabber/mcabberrc.example Tue Feb 12 20:32:37 2008 +0100 @@ -23,6 +23,7 @@ # If you don't know what a resource is, you can leave "mcabber" here. set resource = mcabber #set priority = 3 +#set priority_away = 0 # SSL options: # Set ssl non-zero to use SSL (this also sets the default port to 5223). diff -r f69028ca6296 -r fb438482b28e mcabber/src/jabglue.c --- a/mcabber/src/jabglue.c Wed Jan 23 19:45:51 2008 +0100 +++ b/mcabber/src/jabglue.c Tue Feb 12 20:32:37 2008 +0100 @@ -428,7 +428,11 @@ break; } - prio = settings_opt_get_int("priority"); + if (st == away || st == notavail) + prio = settings_opt_get_int("priority_away"); + else + prio = settings_opt_get_int("priority"); + if (prio) { char strprio[8]; snprintf(strprio, 8, "%d", (int)prio);