# HG changeset patch # User Kim Alvefur # Date 1465040199 -7200 # Node ID f065fc1fab0a7cd45c62104e7f5814d4fee5fd09 # Parent 7c6a610c3ff5c857ddf0e0ba036e416a65253b73 plugins.presence: Have option keys mirror the tag names (keeping compat with previous behaviour) diff -r 7c6a610c3ff5 -r f065fc1fab0a plugins/presence.lua --- 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,