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