Software /
code /
prosody
Comparison
util/xmppstream.lua @ 3540:bc139431830b
Monster whitespace commit (beware the whitespace monster).
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sat, 16 Oct 2010 23:00:42 +0500 |
parent | 3444:e6a78e15fed2 |
child | 3633:4069c37c54bc |
comparison
equal
deleted
inserted
replaced
3539:8bbd965267b2 | 3540:bc139431830b |
---|---|
67 for i=1,#attr do | 67 for i=1,#attr do |
68 local k = attr[i]; | 68 local k = attr[i]; |
69 attr[i] = nil; | 69 attr[i] = nil; |
70 local ns, nm = k:match(ns_pattern); | 70 local ns, nm = k:match(ns_pattern); |
71 if nm ~= "" then | 71 if nm ~= "" then |
72 ns = ns_prefixes[ns]; | 72 ns = ns_prefixes[ns]; |
73 if ns then | 73 if ns then |
74 attr[ns..":"..nm] = attr[k]; | 74 attr[ns..":"..nm] = attr[k]; |
75 attr[k] = nil; | 75 attr[k] = nil; |
76 end | 76 end |
77 end | 77 end |
78 end | 78 end |