Comparison

plugins/mod_motd.lua @ 5371:706206e191e8

mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports
author Kim Alvefur <zash@zash.se>
date Sat, 23 Mar 2013 01:27:38 +0100
parent 5169:ed2d64fb7301
child 5776:bd0ff8ae98a8
child 6009:1579b53351e2
comparison
equal deleted inserted replaced
5370:7838acadb0fa 5371:706206e191e8
11 local motd_text = module:get_option_string("motd_text"); 11 local motd_text = module:get_option_string("motd_text");
12 local motd_jid = module:get_option_string("motd_jid", host); 12 local motd_jid = module:get_option_string("motd_jid", host);
13 13
14 if not motd_text then return; end 14 if not motd_text then return; end
15 15
16 local jid_join = require "util.jid".join;
17 local st = require "util.stanza"; 16 local st = require "util.stanza";
18 17
19 motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n%s+", "\n"); -- Strip indentation from the config 18 motd_text = motd_text:gsub("^%s*(.-)%s*$", "%1"):gsub("\n%s+", "\n"); -- Strip indentation from the config
20 19
21 module:hook("presence/bare", function (event) 20 module:hook("presence/bare", function (event)