diff options
author | Waqas Hussain <waqas20@gmail.com> | 2010-09-27 19:00:11 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2010-09-27 19:00:11 +0500 |
commit | c1bf0e726b24d2dfa856d2ca78c602619cc1e839 (patch) | |
tree | c19abe379c600dad938895daff4798ee2a2ec625 | |
parent | caf7431d14803b60dca6f4493992cbc537f69536 (diff) | |
download | prosody-c1bf0e726b24d2dfa856d2ca78c602619cc1e839.tar.gz prosody-c1bf0e726b24d2dfa856d2ca78c602619cc1e839.zip |
MUC: Fixed traceback on presence errors lacking a condition.
-rw-r--r-- | plugins/muc/muc.lib.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/muc/muc.lib.lua b/plugins/muc/muc.lib.lua index 32d539e7..eddfcd9f 100644 --- a/plugins/muc/muc.lib.lua +++ b/plugins/muc/muc.lib.lua @@ -243,7 +243,7 @@ end local function build_unavailable_presence_from_error(stanza) local type, condition, text = stanza:get_error(); - local error_message = "Kicked: "..condition:gsub("%-", " "); + local error_message = "Kicked: "..(condition and condition:gsub("%-", " ") or "presence error"); if text then error_message = error_message..": "..text; end |