Software /
code /
prosody
Comparison
core/modulemanager.lua @ 218:1263896ab2f1
Reworked the way lxmppd.cfg is used
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 06 Nov 2008 16:52:39 +0500 |
parent | 198:e4755408d40b |
child | 229:01bd24ea488d |
comparison
equal
deleted
inserted
replaced
217:d522f3a25dda | 218:1263896ab2f1 |
---|---|
60 _add_handler(getfenv(2).module, origin_type, tag, xmlns, handler); | 60 _add_handler(getfenv(2).module, origin_type, tag, xmlns, handler); |
61 end | 61 end |
62 return; | 62 return; |
63 end | 63 end |
64 _add_handler(getfenv(2).module, origin_type, tag, xmlns, handler); | 64 _add_handler(getfenv(2).module, origin_type, tag, xmlns, handler); |
65 end | |
66 | |
67 function loadall() | |
68 load("saslauth"); | |
69 load("legacyauth"); | |
70 load("roster"); | |
71 load("register"); | |
72 load("tls"); | |
73 load("vcard"); | |
74 load("private"); | |
75 load("version"); | |
76 load("dialback"); | |
77 end | 65 end |
78 | 66 |
79 function load(name) | 67 function load(name) |
80 local mod, err = loadfile("plugins/mod_"..name..".lua"); | 68 local mod, err = loadfile("plugins/mod_"..name..".lua"); |
81 if not mod then | 69 if not mod then |