Commit graph

16 commits

Author SHA1 Message Date
Kim Alvefur
ad15946ae3 mod_motd: Remove unused variable [luacheck] 2019-01-17 01:15:29 +01:00
Kim Alvefur
30ab1bca86 mod_motd: Remove redundant conditions
The stanza should always be like this in the presence/initial event
2019-01-17 01:05:47 +01:00
Kim Alvefur
0d216b46fd mod_motd: Use initial presence event (saves some checking) 2017-04-27 10:17:54 +02:00
Kim Alvefur
73f394eec5 Merge 0.9->0.10 2014-02-06 10:48:41 +01:00
Kim Alvefur
f41583535f mod_motd: Strip indentation only, leave multiple newlines 2014-02-06 10:44:21 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Kim Alvefur
91cc88b338 mod_motd, mod_register, mod_private, mod_http_errors, mod_admin_adhoc: Remove unused imports 2013-03-23 01:27:38 +01:00
Kim Alvefur
da0876f26f mod_motd: Don't trigger on directed presence or stanzas from s2s. 2012-10-13 15:21:59 +02:00
Kim Alvefur
df70fc2508 mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza() 2012-07-26 04:35:13 +02:00
Matthew Wild
51ab962e55 mod_motd: Use presence/bare to catch a client's initial presence and send the MOTD then (fixes #282) 2012-04-22 14:54:36 +01:00
Matthew Wild
615325cf15 mod_motd: Send only to resource coming online, not the user's bare JID (fixes #282) 2012-04-21 21:16:53 +01:00
Matthew Wild
e31a74b0ee mod_motd: Update to use module:get_option_string 2011-09-27 19:07:41 +01:00
Matthew Wild
4bb6deaaa3 mod_motd: Send no message (instead of 'blank') if no message is set in the config (thanks medics) 2011-09-27 19:05:14 +01:00
Matthew Wild
df5bec6e97 mod_motd: Process value to strip any indentation from the config 2011-01-07 03:46:10 +00:00
Jeff Mitchell
ebe44ba757 Add jid support for motd 2010-05-29 18:52:27 -04:00
Jeff Mitchell
58a4cad9f2 Add motd plugin, giving text to a user on each login. 2010-05-29 14:02:58 -04:00