Mercurial > prosody-modules
comparison mod_ircd/mod_ircd.in.lua @ 538:de64963d8e7a
mod_ircd: Made the requirement of setting the conference_server a bit more "aggressive", and the resulting error banner for not setting it also.
| author | Marco Cirillo <maranda@lightwitch.org> |
|---|---|
| date | Sun, 08 Jan 2012 17:25:34 +0000 |
| parents | db32236d7682 |
| children |
comparison
equal
deleted
inserted
replaced
| 537:50be30f203f3 | 538:de64963d8e7a |
|---|---|
| 12 | 12 |
| 13 local component_jid, component_secret, muc_server, port_number = | 13 local component_jid, component_secret, muc_server, port_number = |
| 14 module.host, nil, module:get_option_string("conference_server"), module:get_option_number("listener_port", 7000); | 14 module.host, nil, module:get_option_string("conference_server"), module:get_option_number("listener_port", 7000); |
| 15 | 15 |
| 16 if not muc_server then | 16 if not muc_server then |
| 17 module:log ("error", "You need to set the MUC server! halting.") | 17 module:log ("error", "You need to set the MUC server in the configuration (conference_server)!") |
| 18 module:log ("error", "Be a good boy or girl and go read the wiki at: http://code.google.com/p/prosody-modules/wiki/mod_ircd") | |
| 18 return false; | 19 return false; |
| 19 end | 20 end |
| 20 | 21 |
| 21 package.loaded["util.sha1"] = require "util.encodings"; | 22 package.loaded["util.sha1"] = require "util.encodings"; |
| 22 local verse = require "verse" | 23 local verse = require "verse" |
