plugins/presence.lua

changeset 405
f065fc1fab0a
parent 404
7c6a610c3ff5
child 406
3c732f1d990c
--- a/plugins/presence.lua	Sat Jun 04 13:35:23 2016 +0200
+++ b/plugins/presence.lua	Sat Jun 04 13:36:39 2016 +0200
@@ -21,11 +21,11 @@
 			if opts.show then
 				p:tag("show"):text(opts.show):up();
 			end
-			if opts.prio then
-				p:tag("priority"):text(tostring(opts.prio)):up();
+			if opts.priority or opts.prio then
+				p:tag("priority"):text(tostring(opts.priority or opts.prio)):up();
 			end
-			if opts.msg then
-				p:tag("status"):text(opts.msg):up();
+			if opts.status or opts.msg then
+				p:tag("status"):text(opts.status or opts.msg):up();
 			end
 		end
 		-- TODO maybe use opts as prio if it's a int,

mercurial