Commit graph

20 commits

Author SHA1 Message Date
Kim Alvefur
a2cfaf8c28 mod_announce: Silence luacheck warning about unused variable 2019-12-23 21:43:34 +01:00
Kim Alvefur
3bf9f59c00 mod_announce: Check for admin on current virtualhost instead of global (fixes #1365) (thanks yc) 2019-05-27 12:05:35 +02:00
Kim Alvefur
60f44b1556 mod_announce: Fix luacheck warnings 2018-07-06 00:16:48 +02:00
Kim Alvefur
6c922fe328 mod_announce: Depend on mod_adhoc for consistent behaviour (thanks meaz, Link Mauve) 2018-07-02 23:41:36 +02:00
Kim Alvefur
faea440e51 mod_announce: Remove unreachable return statement [luacheck] 2018-03-23 14:01:42 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Kim Alvefur
27dc3a5b9a mod_announce, mod_auth_anonymous, mod_c2s, mod_c2s, mod_component, mod_iq, mod_message, mod_presence, mod_tls: Access prosody.{hosts,bare_sessions,full_sessions} instead of the old globals 2013-03-23 01:27:16 +01:00
Florian Zeitz
ddb2f794f7 mod_admin_adhoc, mod_announce: Explicitly specify possible actions for ad-hoc commands 2012-08-02 21:42:00 +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
Florian Zeitz
f76c2aa90b mod_adhoc, mod_admin_adhoc, mod_announce: Use module:provides() to manage Ad-Hoc commands 2012-06-12 14:29:04 +02:00
Waqas Hussain
29fd792c7f mod_announce: A little cleanup. 2010-06-18 14:29:28 +05:00
Waqas Hussain
6b4c9dd8c2 mod_announce: Removed unused variables. 2010-06-18 14:20:00 +05:00
Waqas Hussain
730fa22c6d mod_announce: Changed a global variable to local. 2010-06-18 14:19:09 +05:00
Matthew Wild
e53c3dce37 mod_announce: Add ad-hoc command for sending announcements \o/ 2010-06-11 12:07:25 +01:00
Waqas Hussain
7b1132921d mod_announce: Fixed an edge case where non-admins attempting to announce would get two error replies. 2010-06-08 16:26:01 +05:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Matthew Wild
e45610ce6e Add copyright header to those files missing one 2009-07-10 03:08:38 +01:00
Waqas Hussain
38fec5d17d mod_announce: Work with non-local admins 2009-06-23 23:59:21 +05:00
Waqas Hussain
030772c85e mod_announce: Use usermanager.is_admin to verify admin status 2009-06-23 23:55:56 +05:00
Matthew Wild
8441ed7821 mod_announce: New module to send a message to all online users 2009-06-22 18:05:36 +01:00