plugins/version.lua

changeset 7
59129c1e4e07
parent 0
7d84f4403d67
child 16
ae69cea97598
equal deleted inserted replaced
6:b0fec41e695b 7:59129c1e4e07
32 else 32 else
33 local type, condition, text = reply.type, reply.condition, reply.text; 33 local type, condition, text = reply.type, reply.condition, reply.text;
34 local r = "There was an error requesting "..param.."'s version"; 34 local r = "There was an error requesting "..param.."'s version";
35 if condition == "service-unavailable" then 35 if condition == "service-unavailable" then
36 r = param.." doesn't reply to version requests"; 36 r = param.." doesn't reply to version requests";
37 elseif condition == "feature-not-implemented" then
38 r = param.." doesn't support feature requests";
37 elseif condition == "remote-server-not-found" then 39 elseif condition == "remote-server-not-found" then
38 r = param.." can't be reached via XMPP" 40 r = param.." can't be reached via XMPP";
39 elseif condition and not text then 41 elseif condition and not text then
40 r = r..": "..condition; 42 r = r..": "..condition;
41 end 43 end
42 if text then 44 if text then
43 r = r .. " ("..text..")"; 45 r = r .. " ("..text..")";

mercurial