prosody.git
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.

15 years agoSend host, and not the recipient's JID to module manager (fixes #53)
Waqas Hussain [Wed, 31 Dec 2008 08:52:41 +0000 (13:52 +0500)]
Send host, and not the recipient's JID to module manager (fixes #53)

15 years agoInitial mod_muc: XEP-0045: Multi-User Chat
Waqas Hussain [Wed, 31 Dec 2008 05:16:42 +0000 (10:16 +0500)]
Initial mod_muc: XEP-0045: Multi-User Chat

15 years agoAdd allow_registration option to disable account registration
Matthew Wild [Mon, 29 Dec 2008 23:36:24 +0000 (23:36 +0000)]
Add allow_registration option to disable account registration

15 years agoDon't use TLS connection handler when SSL/TLS not available or configured (thanks...
Matthew Wild [Mon, 29 Dec 2008 22:31:10 +0000 (22:31 +0000)]
Don't use TLS connection handler when SSL/TLS not available or configured (thanks to Ricardo for finding)

15 years agoMakefile fix for clean target
Matthew Wild [Sun, 28 Dec 2008 05:09:38 +0000 (05:09 +0000)]
Makefile fix for clean target

15 years agoUpdating 0.2.0 tag
Matthew Wild [Sat, 27 Dec 2008 21:54:07 +0000 (21:54 +0000)]
Updating 0.2.0 tag

15 years agoSmall fix for logging in connlisteners (warning != warn)
Matthew Wild [Sat, 27 Dec 2008 21:25:08 +0000 (21:25 +0000)]
Small fix for logging in connlisteners (warning != warn)

15 years agoRemove some old debugging code from mod_bosh
Matthew Wild [Sat, 27 Dec 2008 21:23:14 +0000 (21:23 +0000)]
Remove some old debugging code from mod_bosh

15 years agoRemove some debugging code that slipped in
Matthew Wild [Sat, 27 Dec 2008 21:22:49 +0000 (21:22 +0000)]
Remove some debugging code that slipped in

15 years agoFix specifying ports in config, and SSL support
Matthew Wild [Sat, 27 Dec 2008 21:20:09 +0000 (21:20 +0000)]
Fix specifying ports in config, and SSL support

15 years agoRemove logging for server.lua
Matthew Wild [Sat, 27 Dec 2008 21:18:12 +0000 (21:18 +0000)]
Remove logging for server.lua

15 years agoRemove borken tags
Matthew Wild [Sat, 27 Dec 2008 16:06:44 +0000 (16:06 +0000)]
Remove borken tags

15 years agoFix incorrect version number as tag (again) (again)
Matthew Wild [Sat, 27 Dec 2008 16:00:52 +0000 (16:00 +0000)]
Fix incorrect version number as tag (again) (again)

15 years agoFix incorrect version number as tag (again) (again)
Matthew Wild [Sat, 27 Dec 2008 16:00:28 +0000 (16:00 +0000)]
Fix incorrect version number as tag (again) (again)

15 years agoAdded tag 0.2.0, -m, Fix incorrect version number as tag (again) for changeset 90da4c...
Matthew Wild [Sat, 27 Dec 2008 15:59:13 +0000 (15:59 +0000)]
Added tag 0.2.0, -m, Fix incorrect version number as tag (again) for changeset 90da4c9b34b5

15 years agoAdded tag 0.20, -m, Fix incorrect version number as tag for changeset 90da4c9b34b5
Matthew Wild [Sat, 27 Dec 2008 15:58:43 +0000 (15:58 +0000)]
Added tag 0.20, -m, Fix incorrect version number as tag for changeset 90da4c9b34b5

15 years agoAdded tag 0.20, -m, Fix incorrect version number as tag for changeset 90da4c9b34b5
Matthew Wild [Sat, 27 Dec 2008 15:58:35 +0000 (15:58 +0000)]
Added tag 0.20, -m, Fix incorrect version number as tag for changeset 90da4c9b34b5

15 years agoAdded util.multitable.set
Waqas Hussain [Sat, 27 Dec 2008 03:27:26 +0000 (08:27 +0500)]
Added util.multitable.set

15 years agoDelete the offline message store only when offline messages are present
Waqas Hussain [Fri, 26 Dec 2008 16:48:08 +0000 (21:48 +0500)]
Delete the offline message store only when offline messages are present

15 years agoReturn an empty set intead of an error when no disco items are available for a host
Waqas Hussain [Fri, 26 Dec 2008 16:46:05 +0000 (21:46 +0500)]
Return an empty set intead of an error when no disco items are available for a host

15 years agoAdded tag 0.2 for changeset 90da4c9b34b5
Matthew Wild [Thu, 25 Dec 2008 03:11:15 +0000 (03:11 +0000)]
Added tag 0.2 for changeset 90da4c9b34b5

15 years agoHTTP requests now have status code as a number instead of a string. Switched paramete...
Matthew Wild [Thu, 25 Dec 2008 03:05:06 +0000 (03:05 +0000)]
HTTP requests now have status code as a number instead of a string. Switched parameters on both http.request() and the callback to better match LuaSocket's http module

15 years agoDestroy session on failed dialback instead of throwing an error
Matthew Wild [Thu, 25 Dec 2008 02:30:56 +0000 (02:30 +0000)]
Destroy session on failed dialback instead of throwing an error

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Thu, 25 Dec 2008 01:37:13 +0000 (01:37 +0000)]
Automated merge with http://waqas.ath.cx:8000/

15 years agoMoved directory auto-creation to datamanager
Waqas Hussain [Thu, 25 Dec 2008 01:35:05 +0000 (06:35 +0500)]
Moved directory auto-creation to datamanager

15 years agoMore error replies for offline and non-existing users
Waqas Hussain [Thu, 25 Dec 2008 00:16:11 +0000 (05:16 +0500)]
More error replies for offline and non-existing users

15 years agoDirected presence
Waqas Hussain [Wed, 24 Dec 2008 23:58:15 +0000 (04:58 +0500)]
Directed presence

15 years agoChanged order of checking for component hosts to check the full and bare JIDs before...
Waqas Hussain [Wed, 24 Dec 2008 23:27:19 +0000 (04:27 +0500)]
Changed order of checking for component hosts to check the full and bare JIDs before the hostname (at another place)

15 years agoAutomated merge with http://waqas.ath.cx:8000/
Matthew Wild [Wed, 24 Dec 2008 23:19:48 +0000 (23:19 +0000)]
Automated merge with http://waqas.ath.cx:8000/

15 years agoFix for not loading global modules when host-specific modules are specified in config
Matthew Wild [Wed, 24 Dec 2008 18:48:09 +0000 (18:48 +0000)]
Fix for not loading global modules when host-specific modules are specified in config

15 years agoChanged order of checking for component hosts to check the full and bare JIDs before...
Waqas Hussain [Wed, 24 Dec 2008 00:10:13 +0000 (05:10 +0500)]
Changed order of checking for component hosts to check the full and bare JIDs before the hostname

15 years agoInitial mod_bosh, works, kind of, but quite incomplete
Matthew Wild [Mon, 22 Dec 2008 22:19:42 +0000 (22:19 +0000)]
Initial mod_bosh, works, kind of, but quite incomplete

15 years agoAdd initial mod_httpserver for serving static content
Matthew Wild [Mon, 22 Dec 2008 22:13:22 +0000 (22:13 +0000)]
Add initial mod_httpserver for serving static content

15 years agoAdding initial net.httpserver (lots of work to do on it)
Matthew Wild [Mon, 22 Dec 2008 22:12:11 +0000 (22:12 +0000)]
Adding initial net.httpserver (lots of work to do on it)

15 years agoFix nil status code for http request callbacks
Matthew Wild [Mon, 22 Dec 2008 22:01:49 +0000 (22:01 +0000)]
Fix nil status code for http request callbacks

15 years agoMerge from waqas
Matthew Wild [Mon, 22 Dec 2008 13:29:59 +0000 (13:29 +0000)]
Merge from waqas

15 years agoBounce stanza errors on failed s2s
Waqas Hussain [Thu, 18 Dec 2008 20:57:13 +0000 (01:57 +0500)]
Bounce stanza errors on failed s2s

15 years agoFix data loss when closing connection with a large write queue. Thanks albert :)
Matthew Wild [Thu, 18 Dec 2008 20:01:09 +0000 (20:01 +0000)]
Fix data loss when closing connection with a large write queue. Thanks albert :)

15 years agoSecond merge from waqas
Matthew Wild [Tue, 16 Dec 2008 02:40:50 +0000 (02:40 +0000)]
Second merge from waqas

15 years agoMerge from waqas
Matthew Wild [Tue, 16 Dec 2008 02:40:29 +0000 (02:40 +0000)]
Merge from waqas

15 years agoChange xmlhandlers to match stream opening tag with ns+tag
Matthew Wild [Tue, 16 Dec 2008 02:33:08 +0000 (02:33 +0000)]
Change xmlhandlers to match stream opening tag with ns+tag

15 years agoProtect loading of connlisteners, to catch errors
Matthew Wild [Tue, 16 Dec 2008 02:32:01 +0000 (02:32 +0000)]
Protect loading of connlisteners, to catch errors

15 years agoRemove old debugging line from sessionmanager
Matthew Wild [Tue, 16 Dec 2008 02:30:24 +0000 (02:30 +0000)]
Remove old debugging line from sessionmanager

15 years agoFixed URL encoding to generate %0x instead of %x
Waqas Hussain [Mon, 15 Dec 2008 22:46:17 +0000 (03:46 +0500)]
Fixed URL encoding to generate %0x instead of %x

15 years agoRemove a FIXME from mod_tls
Matthew Wild [Mon, 15 Dec 2008 18:06:59 +0000 (18:06 +0000)]
Remove a FIXME from mod_tls

15 years agoAdd support for dialback piggy-backing. Fixes #37. Thanks to CShadowRun for helping...
Matthew Wild [Sat, 13 Dec 2008 17:43:52 +0000 (17:43 +0000)]
Add support for dialback piggy-backing. Fixes #37. Thanks to CShadowRun for helping me test :)

15 years agoMake wraptcpclient set timeout to 0, and add it to the list of exported functions...
Matthew Wild [Sat, 13 Dec 2008 14:30:59 +0000 (14:30 +0000)]
Make wraptcpclient set timeout to 0, and add it to the list of exported functions from server.lua

15 years agoOops, don't call server.loop() because we'll be running inside the server
Matthew Wild [Fri, 12 Dec 2008 04:38:22 +0000 (04:38 +0000)]
Oops, don't call server.loop() because we'll be running inside the server

15 years agoPass HTTP request object to callback
Matthew Wild [Fri, 12 Dec 2008 04:30:35 +0000 (04:30 +0000)]
Pass HTTP request object to callback

15 years agoHTTP request callbacks now: handler(code, content) (where code may be 0, and content...
Matthew Wild [Fri, 12 Dec 2008 04:16:35 +0000 (04:16 +0000)]
HTTP request callbacks now: handler(code, content) (where code may be 0, and content an error message)