Diff

plugins/presence.lua @ 405:f065fc1fab0a

plugins.presence: Have option keys mirror the tag names (keeping compat with previous behaviour)
author Kim Alvefur <zash@zash.se>
date Sat, 04 Jun 2016 13:36:39 +0200
parent 404:7c6a610c3ff5
child 406:3c732f1d990c
line wrap: on
line diff
--- 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,