Software /
code /
clix
Changeset
101:956242b7d5df
clix/presence: Handle invalid <show> values (thanks Lonnie Abelbeck)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 31 Mar 2013 02:56:39 +0100 |
parents | 100:de5abce983d9 |
children | 107:67ff8f55db4a 120:f1166645a56c |
files | clix/presence.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/presence.lua Sat Mar 30 14:26:05 2013 +0000 +++ b/clix/presence.lua Sun Mar 31 02:56:39 2013 +0100 @@ -21,7 +21,7 @@ local status = presence:get_child("status"); local show_str = show and show:get_text():lower() or "online"; pres_str = "show=" .. show_str; - pres_num = presence_values[show_str]; + pres_num = presence_values[show_str] or pres_num; if priority then pres_str = pres_str .. DELIM .. "priority=" .. priority:get_text(); else