Comparison

plugins/presence.lua @ 191:e0664081654c

plugins.presence: Fix priority setting. (Thanks Florob)
author Kim Alvefur <zash@zash.se>
date Mon, 07 Mar 2011 21:53:02 +0100
parent 177:0ffb565fcfd6
child 197:7e98cf2c1d8d
comparison
equal deleted inserted replaced
190:751a69610eaa 191:e0664081654c
22 if type(opts) == "table" then 22 if type(opts) == "table" then
23 if opts.show then 23 if opts.show then
24 p:tag("show"):text(opts.show):up(); 24 p:tag("show"):text(opts.show):up();
25 end 25 end
26 if opts.prio then 26 if opts.prio then
27 p:tag("priority"):text(opts.priority):up(); 27 p:tag("priority"):text(tostring(opts.prio)):up();
28 end 28 end
29 if opts.msg then 29 if opts.msg then
30 p:tag("status"):text(opts.msg):up(); 30 p:tag("status"):text(opts.msg):up();
31 end 31 end
32 end 32 end