prosody.git
15 years agoUpdate COPYING file... probably the worst thing I could forget to commit in this...
Matthew Wild [Mon, 2 Feb 2009 18:04:13 +0000 (18:04 +0000)]
Update COPYING file... probably the worst thing I could forget to commit in this release :)

15 years agoLicensing/version updates for some files (forgot to commit, doh...)
Matthew Wild [Mon, 2 Feb 2009 18:03:18 +0000 (18:03 +0000)]
Licensing/version updates for some files (forgot to commit, doh...)

15 years agoRemove redundant linking in util-src modules' Makefile
Matthew Wild [Mon, 2 Feb 2009 18:02:20 +0000 (18:02 +0000)]
Remove redundant linking in util-src modules' Makefile

15 years agoHappy birthday to me, happy... 0.3.0!
Matthew Wild [Mon, 2 Feb 2009 12:54:49 +0000 (12:54 +0000)]
Happy birthday to me, happy... 0.3.0!

15 years agomod_bosh: No need to tostring() uuids now
Matthew Wild [Sun, 1 Feb 2009 02:20:11 +0000 (02:20 +0000)]
mod_bosh: No need to tostring() uuids now

15 years agoutil.uuid: Return a string, not a number. Looked so innocent.
Matthew Wild [Sun, 1 Feb 2009 02:17:56 +0000 (02:17 +0000)]
util.uuid: Return a string, not a number. Looked so innocent.

15 years agoUpdate main prosody file, since it doesn't match *.lua pattern, and sed -i treats...
Matthew Wild [Fri, 30 Jan 2009 18:03:28 +0000 (18:03 +0000)]
Update main prosody file, since it doesn't match *.lua pattern, and sed -i treats symlinks badly

15 years agoUpdate copyright notices for 2009
Matthew Wild [Fri, 30 Jan 2009 17:59:26 +0000 (17:59 +0000)]
Update copyright notices for 2009

15 years ago0.2->0.3
Matthew Wild [Fri, 30 Jan 2009 17:40:25 +0000 (17:40 +0000)]
0.2->0.3

15 years agoGPL->MIT!
Matthew Wild [Fri, 30 Jan 2009 17:22:56 +0000 (17:22 +0000)]
GPL->MIT!

15 years agomod_muc: Add 'nick' to unavailable presence of nick changes. Thanks to Asterix for...
Matthew Wild [Thu, 29 Jan 2009 20:49:32 +0000 (20:49 +0000)]
mod_muc: Add 'nick' to unavailable presence of nick changes. Thanks to Asterix for spotting :)

15 years agomod_muc: Convert to unix line endings
Matthew Wild [Thu, 29 Jan 2009 20:46:34 +0000 (20:46 +0000)]
mod_muc: Convert to unix line endings

15 years agoLoad net.server after util.dependencies to catch missing luasocket
Matthew Wild [Thu, 29 Jan 2009 18:04:25 +0000 (18:04 +0000)]
Load net.server after util.dependencies to catch missing luasocket

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Thu, 29 Jan 2009 17:54:37 +0000 (17:54 +0000)]
Automated merge with http://waqas.ath.cx:8000/

15 years agotools/ejabberd2prosody: Support for pending-in roster items
Waqas Hussain [Thu, 29 Jan 2009 17:37:25 +0000 (22:37 +0500)]
tools/ejabberd2prosody: Support for pending-in roster items

15 years agomod_muc: Add support for being a component
Matthew Wild [Thu, 29 Jan 2009 02:14:16 +0000 (02:14 +0000)]
mod_muc: Add support for being a component

15 years agocomponentmanager: Add support for loading components defined in the config
Matthew Wild [Thu, 29 Jan 2009 02:13:58 +0000 (02:13 +0000)]
componentmanager: Add support for loading components defined in the config

15 years agoconfigmanager: Add support for defining components
Matthew Wild [Thu, 29 Jan 2009 02:13:30 +0000 (02:13 +0000)]
configmanager: Add support for defining components

15 years agohostmanager: Fire event when all hosts are loaded from config
Matthew Wild [Thu, 29 Jan 2009 02:09:53 +0000 (02:09 +0000)]
hostmanager: Fire event when all hosts are loaded from config

15 years agomodulemanager: Really fix call_module_method to work properly
Matthew Wild [Thu, 29 Jan 2009 02:01:09 +0000 (02:01 +0000)]
modulemanager: Really fix call_module_method to work properly

15 years agomodulemanager: Add get_host_type() API method, and fix up call_module_method to work...
Matthew Wild [Thu, 29 Jan 2009 01:58:11 +0000 (01:58 +0000)]
modulemanager: Add get_host_type() API method, and fix up call_module_method to work properly

15 years agomodulemanager: Add module:set_global() as a cleaner way for a module to declare itsel...
Matthew Wild [Sat, 24 Jan 2009 20:29:25 +0000 (20:29 +0000)]
modulemanager: Add module:set_global() as a cleaner way for a module to declare itself 'global'

15 years agocore.modulemanager: Some refactoring to make upcoming changes a little easier
Matthew Wild [Sat, 24 Jan 2009 01:15:40 +0000 (01:15 +0000)]
core.modulemanager: Some refactoring to make upcoming changes a little easier

15 years agoFriendlier message when config file not found
Matthew Wild [Thu, 22 Jan 2009 14:39:40 +0000 (14:39 +0000)]
Friendlier message when config file not found

15 years agoutil.dependencies: Not finding our own libraries is fatal
Matthew Wild [Thu, 22 Jan 2009 14:33:02 +0000 (14:33 +0000)]
util.dependencies: Not finding our own libraries is fatal

15 years agoutil.dependencies: Show useful messages when our own libraries are not found, too
Matthew Wild [Thu, 22 Jan 2009 14:29:29 +0000 (14:29 +0000)]
util.dependencies: Show useful messages when our own libraries are not found, too

15 years agoserver.lua: Comment out unnecessary or very verbose logging, and log the rest as...
Matthew Wild [Sat, 17 Jan 2009 14:57:21 +0000 (14:57 +0000)]
server.lua: Comment out unnecessary or very verbose logging, and log the rest as debug level

15 years agoserver.lua: Use Prosody logger for errors, silence non-errors
Matthew Wild [Sat, 17 Jan 2009 14:53:20 +0000 (14:53 +0000)]
server.lua: Use Prosody logger for errors, silence non-errors

15 years agoPort to new server.lua, quite some changes, but I believe everything to be working
Matthew Wild [Sat, 17 Jan 2009 04:45:08 +0000 (04:45 +0000)]
Port to new server.lua, quite some changes, but I believe everything to be working

15 years agonet.http: custom_headers -> headers
Matthew Wild [Fri, 16 Jan 2009 23:34:45 +0000 (23:34 +0000)]
net.http: custom_headers -> headers

15 years agonet.http: Remove request from conn->request table when conn closed
Matthew Wild [Fri, 16 Jan 2009 23:33:19 +0000 (23:33 +0000)]
net.http: Remove request from conn->request table when conn closed

15 years agomod_console: Make global
Matthew Wild [Fri, 16 Jan 2009 05:43:45 +0000 (05:43 +0000)]
mod_console: Make global

15 years agomod_posix: logging fix
Matthew Wild [Fri, 16 Jan 2009 05:41:59 +0000 (05:41 +0000)]
mod_posix: logging fix

15 years agoFix for pposix version detection
Matthew Wild [Fri, 16 Jan 2009 05:40:40 +0000 (05:40 +0000)]
Fix for pposix version detection

15 years agomodulemanager: Comment out logging of modules hooking stanzas, too noisy
Matthew Wild [Fri, 16 Jan 2009 05:38:03 +0000 (05:38 +0000)]
modulemanager: Comment out logging of modules hooking stanzas, too noisy

15 years agoutil.datamanager: Small fix for clearer logging of data path
Matthew Wild [Fri, 16 Jan 2009 05:37:17 +0000 (05:37 +0000)]
util.datamanager: Small fix for clearer logging of data path

15 years agoFixed server.lua to use prosody logger for errors
Matthew Wild [Fri, 16 Jan 2009 05:36:39 +0000 (05:36 +0000)]
Fixed server.lua to use prosody logger for errors

15 years agopposix: Remove debug line
Matthew Wild [Fri, 16 Jan 2009 05:22:28 +0000 (05:22 +0000)]
pposix: Remove debug line

15 years agopposix: Add syslog_setmask (use config: minimum_log_level = 'warn' etc.)
Matthew Wild [Fri, 16 Jan 2009 05:20:04 +0000 (05:20 +0000)]
pposix: Add syslog_setmask (use config: minimum_log_level = 'warn' etc.)

15 years agomod_posix: Check version of pposix
Matthew Wild [Fri, 16 Jan 2009 05:18:38 +0000 (05:18 +0000)]
mod_posix: Check version of pposix

15 years agopposix: Add _NAME and _VERSION
Matthew Wild [Fri, 16 Jan 2009 04:57:36 +0000 (04:57 +0000)]
pposix: Add _NAME and _VERSION

15 years agostanza_router: That'll teach me to not commit at this time of night. Or not.
Matthew Wild [Fri, 16 Jan 2009 04:57:23 +0000 (04:57 +0000)]
stanza_router: That'll teach me to not commit at this time of night. Or not.

15 years agoReplacing pretty_print() with top_tag() for logging
Matthew Wild [Fri, 16 Jan 2009 04:37:16 +0000 (04:37 +0000)]
Replacing pretty_print() with top_tag() for logging

15 years agoFix invalid loglevels in mod_saslauth
Matthew Wild [Fri, 16 Jan 2009 04:19:47 +0000 (04:19 +0000)]
Fix invalid loglevels in mod_saslauth

15 years agomod_posix/pposix: Fix reporting of incorrect PID on daemonization. Log correct PID...
Matthew Wild [Thu, 15 Jan 2009 20:59:36 +0000 (20:59 +0000)]
mod_posix/pposix: Fix reporting of incorrect PID on daemonization. Log correct PID, and support writing a pidfile (pidfile = '/path/to/prosody.pid' in config). Added getpid() to pposix and improved function names.

15 years agomod_posix: Support for logging to syslog (log = 'syslog' in config)
Matthew Wild [Thu, 15 Jan 2009 20:06:41 +0000 (20:06 +0000)]
mod_posix: Support for logging to syslog (log = 'syslog' in config)

15 years agonet.connlisteners: Fix to report errors loading connlisteners
Matthew Wild [Thu, 15 Jan 2009 20:02:28 +0000 (20:02 +0000)]
net.connlisteners: Fix to report errors loading connlisteners

15 years agonet.http: Don't log content from server
Matthew Wild [Thu, 15 Jan 2009 04:10:06 +0000 (04:10 +0000)]
net.http: Don't log content from server

15 years agonet.http: Fix to send query part of URL to server
Matthew Wild [Thu, 15 Jan 2009 04:08:06 +0000 (04:08 +0000)]
net.http: Fix to send query part of URL to server

15 years agoStringprep!
Waqas Hussain [Wed, 14 Jan 2009 23:36:35 +0000 (04:36 +0500)]
Stringprep!

15 years agoutil/jid: string prepping functions added: prepped_split and prep
Waqas Hussain [Wed, 14 Jan 2009 23:34:55 +0000 (04:34 +0500)]
util/jid: string prepping functions added: prepped_split and prep

15 years agoutil/logger: setwriter now returns the old writer on success
Waqas Hussain [Wed, 14 Jan 2009 18:04:16 +0000 (23:04 +0500)]
util/logger: setwriter now returns the old writer on success

15 years agostanza_router: Fixed error replies for unhandled stanzas
Waqas Hussain [Wed, 14 Jan 2009 17:35:01 +0000 (22:35 +0500)]
stanza_router: Fixed error replies for unhandled stanzas

15 years agonet.http: Fix for callbacks being triggered multiple times for the same request
Matthew Wild [Wed, 14 Jan 2009 03:06:26 +0000 (03:06 +0000)]
net.http: Fix for callbacks being triggered multiple times for the same request

15 years agomodulemanager: Check for syntax errors before reloading a module
Waqas Hussain [Tue, 13 Jan 2009 18:16:39 +0000 (23:16 +0500)]
modulemanager: Check for syntax errors before reloading a module

15 years agomod_console: Added module:reload
Waqas Hussain [Tue, 13 Jan 2009 17:39:07 +0000 (22:39 +0500)]
mod_console: Added module:reload

15 years agomod_muc: Added unload, save and restore callbacks to allow reloading code while prese...
Waqas Hussain [Tue, 13 Jan 2009 17:38:20 +0000 (22:38 +0500)]
mod_muc: Added unload, save and restore callbacks to allow reloading code while preserving state

15 years agomodulemanager: Added reload support, with callbacks for saving and restoring state
Waqas Hussain [Tue, 13 Jan 2009 17:37:07 +0000 (22:37 +0500)]
modulemanager: Added reload support, with callbacks for saving and restoring state

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Tue, 13 Jan 2009 15:29:00 +0000 (15:29 +0000)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomodulemanager: Fixed error on unloading modules with no handlers
Waqas Hussain [Tue, 13 Jan 2009 15:19:52 +0000 (20:19 +0500)]
modulemanager: Fixed error on unloading modules with no handlers

15 years agomod_muc: deregister component on unload
Waqas Hussain [Tue, 13 Jan 2009 15:18:20 +0000 (20:18 +0500)]
mod_muc: deregister component on unload

15 years agodatamanager: Change log message from type "warn" to "debug" when loading a file fails
Waqas Hussain [Tue, 13 Jan 2009 14:41:52 +0000 (19:41 +0500)]
datamanager: Change log message from type "warn" to "debug" when loading a file fails

15 years agomod_saslauth, mod_tls: minor code cleanup
Waqas Hussain [Tue, 13 Jan 2009 14:37:12 +0000 (19:37 +0500)]
mod_saslauth, mod_tls: minor code cleanup

15 years agomod_version: Removed and rearranged some code
Waqas Hussain [Tue, 13 Jan 2009 14:18:37 +0000 (19:18 +0500)]
mod_version: Removed and rearranged some code

15 years agocomponentmanager: Removed unneeded parameter from componentmanager.deregister_component
Waqas Hussain [Tue, 13 Jan 2009 14:17:25 +0000 (19:17 +0500)]
componentmanager: Removed unneeded parameter from componentmanager.deregister_component

15 years agoBOSH: Allow BOSH servers to be configured through config file
Matthew Wild [Tue, 13 Jan 2009 05:55:31 +0000 (05:55 +0000)]
BOSH: Allow BOSH servers to be configured through config file

15 years agomod_actions_http: Show tables as 'list's
Matthew Wild [Mon, 12 Jan 2009 04:13:05 +0000 (04:13 +0000)]
mod_actions_http: Show tables as 'list's

15 years agoAdd mod_actions_http for executing actions through HTTP
Matthew Wild [Mon, 12 Jan 2009 04:09:02 +0000 (04:09 +0000)]
Add mod_actions_http for executing actions through HTTP

15 years agoAdd core.actions for managing server 'actions'; and make modulemanager register actio...
Matthew Wild [Mon, 12 Jan 2009 04:05:10 +0000 (04:05 +0000)]
Add core.actions for managing server 'actions'; and make modulemanager register actions 'load' and 'unload'

15 years agocore.httpserver: Rename request.responseheaders to the more logical request.headers
Matthew Wild [Mon, 12 Jan 2009 04:02:29 +0000 (04:02 +0000)]
core.httpserver: Rename request.responseheaders to the more logical request.headers

15 years agomod_httpserver: Add require 'net.httpserver'
Matthew Wild [Mon, 12 Jan 2009 03:29:05 +0000 (03:29 +0000)]
mod_httpserver: Add require 'net.httpserver'

15 years agomodulemanager: Change pairs() to ipairs() to allow ordered module loading
Matthew Wild [Mon, 12 Jan 2009 03:27:18 +0000 (03:27 +0000)]
modulemanager: Change pairs() to ipairs() to allow ordered module loading

15 years agoSet session.ip to the IP address of connecting clients
Matthew Wild [Mon, 12 Jan 2009 02:59:45 +0000 (02:59 +0000)]
Set session.ip to the IP address of connecting clients

15 years agoBOSH: Make previous fix a bit more efficient
Matthew Wild [Mon, 12 Jan 2009 02:59:00 +0000 (02:59 +0000)]
BOSH: Make previous fix a bit more efficient

15 years agoBOSH: Fix for error when closed session was in inactive_sessions list
Matthew Wild [Mon, 12 Jan 2009 02:57:49 +0000 (02:57 +0000)]
BOSH: Fix for error when closed session was in inactive_sessions list

15 years agoAdd option to in-band registration to allow only whitelisted IPs to register
Matthew Wild [Sun, 11 Jan 2009 07:15:42 +0000 (07:15 +0000)]
Add option to in-band registration to allow only whitelisted IPs to register

15 years agoAdded rate limiting to in-band registration, and added IP [black/white]lists
Matthew Wild [Sun, 11 Jan 2009 07:09:25 +0000 (07:09 +0000)]
Added rate limiting to in-band registration, and added IP [black/white]lists

15 years agoAdd child_with_ns() method to stanza elements, and fix child_with_name() to iterate...
Matthew Wild [Sun, 11 Jan 2009 06:27:57 +0000 (06:27 +0000)]
Add child_with_ns() method to stanza elements, and fix child_with_name() to iterate tags rather than all children

15 years agosasl: Set realm to be the current realm when the client didn't send a realm, or sent...
Waqas Hussain [Sat, 10 Jan 2009 15:14:47 +0000 (20:14 +0500)]
sasl: Set realm to be the current realm when the client didn't send a realm, or sent an empty one

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Fri, 9 Jan 2009 19:19:06 +0000 (19:19 +0000)]
Automated merge with http://waqas.ath.cx:8000/

15 years agoImplement session:close() for BOSH, and add checking for attempts to connect to hosts...
Matthew Wild [Fri, 9 Jan 2009 19:18:46 +0000 (19:18 +0000)]
Implement session:close() for BOSH, and add checking for attempts to connect to hosts we don't serve

15 years agoChange default maximum inactivity period to 60s from 30s
Matthew Wild [Fri, 9 Jan 2009 19:16:47 +0000 (19:16 +0000)]
Change default maximum inactivity period to 60s from 30s

15 years agoRemoved core/offlinemessage.lua along with documentation and references - we have...
Waqas Hussain [Fri, 9 Jan 2009 18:09:53 +0000 (23:09 +0500)]
Removed core/offlinemessage.lua along with documentation and references - we have core/offlinemanager.lua instead

15 years agomodulemanager: Per-host event hooks for plugins - solves issue 41
Waqas Hussain [Fri, 9 Jan 2009 18:01:21 +0000 (23:01 +0500)]
modulemanager: Per-host event hooks for plugins - solves issue 41

15 years agoAdd more tests for util/stanza.lua serialization routines
Matthew Wild [Fri, 9 Jan 2009 17:44:59 +0000 (17:44 +0000)]
Add more tests for util/stanza.lua serialization routines

15 years agoAdd test for previous commit
Matthew Wild [Fri, 9 Jan 2009 17:36:28 +0000 (17:36 +0000)]
Add test for previous commit

15 years agoRestore fix for missing last_add on deserialized stanzas. Thanks to tsing for discove...
Matthew Wild [Fri, 9 Jan 2009 17:27:53 +0000 (17:27 +0000)]
Restore fix for missing last_add on deserialized stanzas. Thanks to tsing for discovering.

15 years agoNumerous BOSH improvements... handle client disconnects, either explicit or implicit...
Matthew Wild [Fri, 9 Jan 2009 16:33:09 +0000 (16:33 +0000)]
Numerous BOSH improvements... handle client disconnects, either explicit or implicit through inactivity; allow specifying BOSH default parameters through config; fix to prevent prematurely closing request connections in some cases, before they were replied to

15 years agosasl: Don't fail for realm=""
Waqas Hussain [Fri, 9 Jan 2009 15:49:39 +0000 (20:49 +0500)]
sasl: Don't fail for realm=""

15 years agoProtected call for HTTP request callbacks, to catch errors
Matthew Wild [Thu, 8 Jan 2009 02:04:06 +0000 (02:04 +0000)]
Protected call for HTTP request callbacks, to catch errors

15 years agoFix to prevent calling HTTP request callback twice with the same data
Matthew Wild [Thu, 8 Jan 2009 02:02:35 +0000 (02:02 +0000)]
Fix to prevent calling HTTP request callback twice with the same data

15 years agoDefault mod_console to listening on localhost only. May be changed with console_inter...
Matthew Wild [Wed, 7 Jan 2009 17:41:27 +0000 (17:41 +0000)]
Default mod_console to listening on localhost only. May be changed with console_interface=xxx.xxx.xxx.xxx in the config

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Wed, 7 Jan 2009 15:14:24 +0000 (15:14 +0000)]
Automated merge with http://waqas.ath.cx:8000/

15 years agomodulemanager: module.unload now gets called when modules are being unloaded
Waqas Hussain [Wed, 7 Jan 2009 15:03:59 +0000 (20:03 +0500)]
modulemanager: module.unload now gets called when modules are being unloaded

15 years agocomponentmanager: Added support for component deregistering
Waqas Hussain [Wed, 7 Jan 2009 15:02:49 +0000 (20:02 +0500)]
componentmanager: Added support for component deregistering

15 years agoRemove warning of already-loaded modules at startup
Matthew Wild [Sun, 4 Jan 2009 02:55:59 +0000 (02:55 +0000)]
Remove warning of already-loaded modules at startup

15 years agomod_muc: Room subject should be sent only the newly joined occupant
Waqas Hussain [Sat, 3 Jan 2009 13:46:52 +0000 (18:46 +0500)]
mod_muc: Room subject should be sent only the newly joined occupant

15 years agoModulemanager: Basic modules can now be unloaded correctly
Waqas Hussain [Sat, 3 Jan 2009 13:45:51 +0000 (18:45 +0500)]
Modulemanager: Basic modules can now be unloaded correctly

15 years agomod_console: replace all \n with \r\n in the output, and send \0 as a marker characte...
Waqas Hussain [Sat, 3 Jan 2009 13:44:39 +0000 (18:44 +0500)]
mod_console: replace all \n with \r\n in the output, and send \0 as a marker character after every response

15 years agomod_muc: Room subjects stored, and room persistence code in place. First user now...
Waqas Hussain [Wed, 31 Dec 2008 13:17:47 +0000 (18:17 +0500)]
mod_muc: Room subjects stored, and room persistence code in place. First user now the owner.