Mercurial > prosody-modules
comparison mod_auth_external/mod_auth_external.lua @ 1195:f502cbffbdd4
mod_auth_external: merge two if blocks with an elseif
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 19 Sep 2013 17:57:25 +0100 |
| parents | b9e4d935867c |
| children | 7dbde05b48a9 |
comparison
equal
deleted
inserted
replaced
| 1194:f5eadba27120 | 1195:f502cbffbdd4 |
|---|---|
| 92 | 92 |
| 93 if script_type == "ejabberd" then | 93 if script_type == "ejabberd" then |
| 94 local lo = len % 256; | 94 local lo = len % 256; |
| 95 local hi = (len - lo) / 256; | 95 local hi = (len - lo) / 256; |
| 96 query = string.char(hi, lo)..query; | 96 query = string.char(hi, lo)..query; |
| 97 end | 97 elseif script_type == "generic" then |
| 98 if script_type == "generic" then | |
| 99 query = query..'\n'; | 98 query = query..'\n'; |
| 100 end | 99 end |
| 101 | 100 |
| 102 local response, err = send_query(query); | 101 local response, err = send_query(query); |
| 103 if not response then | 102 if not response then |
