diff mcabber/src/jabglue.c @ 531:aee9a279a0f3

Allow changing priority on the fly
author Mikael Berthe <mikael@lilotux.net>
date Tue, 22 Nov 2005 23:36:12 +0100
parents d721b3502a77
children 2ac8d8e49e81
line wrap: on
line diff
--- a/mcabber/src/jabglue.c	Mon Nov 21 21:31:12 2005 +0100
+++ b/mcabber/src/jabglue.c	Tue Nov 22 23:36:12 2005 +0100
@@ -40,7 +40,6 @@
 jconn jc;
 static time_t LastPingTime;
 static unsigned int KeepaliveDelay;
-static unsigned int prio;
 static int s_id;
 static int regmode, regdone;
 static enum imstatus mystatus = offline;
@@ -200,11 +199,6 @@
   KeepaliveDelay = delay;
 }
 
-inline void jb_set_priority(unsigned int priority)
-{
-  prio = priority;
-}
-
 void jb_main()
 {
   xmlnode x, z;
@@ -273,6 +267,7 @@
 {
   xmlnode x;
   gchar *utf8_msg;
+  unsigned int prio;
 
   if (!online) return;
 
@@ -314,6 +309,7 @@
         break;
   }
 
+  prio = settings_opt_get_int("priority");
   if (prio) {
     char strprio[8];
     snprintf(strprio, 8, "%u", prio);