plugins/rtbl_admin.lua

changeset 166
95b668d73ff9
parent 165
ec0567256b11
child 167
2073137bc943
equal deleted inserted replaced
165:ec0567256b11 166:95b668d73ff9
14 hash, -- item id 14 hash, -- item id
15 nil, -- options (not implemented anyway) 15 nil, -- options (not implemented anyway)
16 -- <report xmlns="urn:xmpp:reporting:1" reason="urn:xmpp:reporting:abuse"/> 16 -- <report xmlns="urn:xmpp:reporting:1" reason="urn:xmpp:reporting:abuse"/>
17 verse.stanza("report", { 17 verse.stanza("report", {
18 xmlns = "urn:xmpp:reporting:1"; 18 xmlns = "urn:xmpp:reporting:1";
19 reason = "urn:xmpp:reporting:spam"; }), 19 reason = "urn:xmpp:reporting:abuse"; }),
20 function (success) -- callback 20 function (success) -- callback
21 if not success then 21 if not success then
22 command:reply("Failed to update RTBL"); 22 command:reply("Failed to update RTBL");
23 return; 23 return;
24 end 24 end

mercurial