27 local type, condition, text = reply.type, reply.condition, reply.text; |
27 local type, condition, text = reply.type, reply.condition, reply.text; |
28 local r = "There was an error requesting "..param.."'s version"; |
28 local r = "There was an error requesting "..param.."'s version"; |
29 if condition == "service-unavailable" then |
29 if condition == "service-unavailable" then |
30 r = param.." doesn't reply to version requests"; |
30 r = param.." doesn't reply to version requests"; |
31 elseif condition == "feature-not-implemented" then |
31 elseif condition == "feature-not-implemented" then |
32 r = param.." doesn't support feature requests"; |
32 r = param.." doesn't support version requests"; |
33 elseif condition == "remote-server-not-found" then |
33 elseif condition == "remote-server-not-found" then |
34 r = param.." can't be reached via XMPP"; |
34 r = param.." can't be reached via XMPP"; |
35 elseif condition and not text then |
35 elseif condition and not text then |
36 r = r..": "..condition; |
36 r = r..": "..condition; |
37 end |
37 end |