Software /
code /
prosody
Comparison
core/moduleapi.lua @ 4661:76db5d0a2104
moduleapi: module:provides(): Add "-provider" onto the key name
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 23 Apr 2012 14:10:04 +0100 |
parent | 4660:96b40b5e8ea8 |
child | 4663:24524d70a50a |
comparison
equal
deleted
inserted
replaced
4660:96b40b5e8ea8 | 4661:76db5d0a2104 |
---|---|
304 if item_name:find(name.."_", 1, true) == 1 then | 304 if item_name:find(name.."_", 1, true) == 1 then |
305 item_name = item_name:sub(#name+2); | 305 item_name = item_name:sub(#name+2); |
306 end | 306 end |
307 item.name = item_name; | 307 item.name = item_name; |
308 end | 308 end |
309 self:add_item(name, item); | 309 self:add_item(name.."-provider", item); |
310 end | 310 end |
311 | 311 |
312 function api:send(stanza) | 312 function api:send(stanza) |
313 return core_post_stanza(hosts[self.host], stanza); | 313 return core_post_stanza(hosts[self.host], stanza); |
314 end | 314 end |