mcabber/src/jabglue.c
changeset 1419 fb438482b28e
parent 1415 317f8d181626
child 1426 a64778f5f26b
--- 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);