Mercurial > prosody-modules
comparison mod_archive/mod_archive.lua @ 157:86c28405c5da
initial commitment of mod_archive
| author | shinysky<shinysky1986(AT)gmail.com> |
|---|---|
| date | Mon, 24 May 2010 09:08:06 +0800 |
| parents | |
| children | 9a37898f4f7c |
comparison
equal
deleted
inserted
replaced
| 156:b51741b7e86d | 157:86c28405c5da |
|---|---|
| 1 -- Prosody IM | |
| 2 -- Copyright (C) 2008-2010 Dai Zhiwei | |
| 3 -- | |
| 4 -- This project is MIT/X11 licensed. Please see the | |
| 5 -- COPYING file in the source package for more information. | |
| 6 -- | |
| 7 | |
| 8 local st = require "util.stanza"; | |
| 9 | |
| 10 module:add_feature("urn:xmpp:archive"); | |
| 11 | |
| 12 local function preferences_handler(event) | |
| 13 return true; | |
| 14 end | |
| 15 | |
| 16 module:hook("iq/self/urn:xmpp:archive:pref", preferences_handler); | |
| 17 |
