Sat, 04 Jun 2016 13:36:39 +0200
plugins.presence: Have option keys mirror the tag names (keeping compat with previous behaviour)
plugins/presence.lua | file | annotate | diff | comparison | revisions |
--- 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,