clix/presence.lua

changeset 101
956242b7d5df
parent 99
c51402a40e41
child 164
fafdcde2e2eb
--- a/clix/presence.lua	Sat Mar 30 14:26:05 2013 +0000
+++ b/clix/presence.lua	Sun Mar 31 02:56:39 2013 +0100
@@ -21,7 +21,7 @@
 			local status = presence:get_child("status");
 			local show_str = show and show:get_text():lower() or "online";
 			pres_str = "show=" .. show_str;
-			pres_num = presence_values[show_str];
+			pres_num = presence_values[show_str] or pres_num;
 			if priority then
 				pres_str = pres_str .. DELIM .. "priority=" .. priority:get_text();
 			else

mercurial