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 |