19 local show = presence:get_child("show"); |
19 local show = presence:get_child("show"); |
20 local priority = presence:get_child("priority"); |
20 local priority = presence:get_child("priority"); |
21 local status = presence:get_child("status"); |
21 local status = presence:get_child("status"); |
22 local show_str = show and show:get_text():lower() or "online"; |
22 local show_str = show and show:get_text():lower() or "online"; |
23 pres_str = "show=" .. show_str; |
23 pres_str = "show=" .. show_str; |
24 pres_num = presence_values[show_str]; |
24 pres_num = presence_values[show_str] or pres_num; |
25 if priority then |
25 if priority then |
26 pres_str = pres_str .. DELIM .. "priority=" .. priority:get_text(); |
26 pres_str = pres_str .. DELIM .. "priority=" .. priority:get_text(); |
27 else |
27 else |
28 pres_str = pres_str .. DELIM; |
28 pres_str = pres_str .. DELIM; |
29 end |
29 end |