prosody.git
15 years agoMUC: Fixed: Presence for user joining the roomi was sent twice to the user
Waqas Hussain [Mon, 16 Feb 2009 21:48:06 +0000 (02:48 +0500)]
MUC: Fixed: Presence for user joining the roomi was sent twice to the user

15 years agoMerge from waqas
Matthew Wild [Mon, 16 Feb 2009 15:44:54 +0000 (15:44 +0000)]
Merge from waqas

15 years agoMerge waqas with waqas
Matthew Wild [Mon, 16 Feb 2009 15:44:23 +0000 (15:44 +0000)]
Merge waqas with waqas

15 years agoMUC: Made vCards work by redirecting vCard requests to bare JIDs
Waqas Hussain [Mon, 16 Feb 2009 15:24:31 +0000 (20:24 +0500)]
MUC: Made vCards work by redirecting vCard requests to bare JIDs

15 years agoMUC: Kick participants sending error messages to other participants
Waqas Hussain [Mon, 16 Feb 2009 15:05:58 +0000 (20:05 +0500)]
MUC: Kick participants sending error messages to other participants

15 years agoMUC: Private stanzas (private messages, IQs, etc)
Waqas Hussain [Mon, 16 Feb 2009 15:05:03 +0000 (20:05 +0500)]
MUC: Private stanzas (private messages, IQs, etc)

15 years agoMUC: Presence and message stanzas now fully work (status messages, xhtml-im, etc)
Waqas Hussain [Mon, 16 Feb 2009 14:39:10 +0000 (19:39 +0500)]
MUC: Presence and message stanzas now fully work (status messages, xhtml-im, etc)

15 years agoutil.pposix: Add getuid/setuid (we don't use them yet)
Matthew Wild [Sun, 15 Feb 2009 15:56:04 +0000 (15:56 +0000)]
util.pposix: Add getuid/setuid (we don't use them yet)

15 years agomod_version: Operating system detection. Disable with hide_os_type = true in config
Matthew Wild [Sun, 15 Feb 2009 15:52:11 +0000 (15:52 +0000)]
mod_version: Operating system detection. Disable with hide_os_type = true in config

15 years agoAdd -Wall to default CFLAGS
Matthew Wild [Sun, 15 Feb 2009 11:47:43 +0000 (11:47 +0000)]
Add -Wall to default CFLAGS

15 years agoAdding TODO notice on UUIDs for usage with SASL ANONYMOUS.
Tobias Markmann [Sat, 14 Feb 2009 18:39:46 +0000 (19:39 +0100)]
Adding TODO notice on UUIDs for usage with SASL ANONYMOUS.

15 years agoMerging with tip.
Tobias Markmann [Sat, 14 Feb 2009 18:13:14 +0000 (19:13 +0100)]
Merging with tip.

15 years agoAdding inital support for ANONYMOUS mechanism in SASL.
Tobias Markmann [Sat, 14 Feb 2009 17:57:50 +0000 (18:57 +0100)]
Adding inital support for ANONYMOUS mechanism in SASL.

15 years agoUse $CC, $LD in Makefile. Add --c-compiler, --linker flags to ./configure script...
Matthew Wild [Sat, 14 Feb 2009 15:38:37 +0000 (15:38 +0000)]
Use $CC, $LD in Makefile. Add --c-compiler, --linker flags to ./configure script. Add --lflags to ./configure script. Thanks to Lorenzo for the initial patch!

15 years agoAdded tests/run_tests.bat for running tests on Windows
Waqas Hussain [Fri, 13 Feb 2009 17:23:08 +0000 (22:23 +0500)]
Added tests/run_tests.bat for running tests on Windows

15 years agoFixed tests/test.lua to work on Windows
Waqas Hussain [Fri, 13 Feb 2009 17:21:59 +0000 (22:21 +0500)]
Fixed tests/test.lua to work on Windows

15 years agoLogging format improvement
Waqas Hussain [Fri, 13 Feb 2009 17:10:29 +0000 (22:10 +0500)]
Logging format improvement

15 years agoAdd tests for util.multitable
Matthew Wild [Fri, 13 Feb 2009 16:43:44 +0000 (16:43 +0000)]
Add tests for util.multitable

15 years agoutil.pposix: Fix incompatible pointer type compiler warnings
Matthew Wild [Fri, 13 Feb 2009 15:01:46 +0000 (15:01 +0000)]
util.pposix: Fix incompatible pointer type compiler warnings

15 years agoAdd RunScript command to config to run a Lua script prior to starting the server
Matthew Wild [Fri, 13 Feb 2009 14:43:12 +0000 (14:43 +0000)]
Add RunScript command to config to run a Lua script prior to starting the server

15 years agoAdd Include command to include extra configuration files from the main one
Matthew Wild [Fri, 13 Feb 2009 14:38:17 +0000 (14:38 +0000)]
Add Include command to include extra configuration files from the main one

15 years agoReport errors in the config file to the user
Matthew Wild [Fri, 13 Feb 2009 14:37:15 +0000 (14:37 +0000)]
Report errors in the config file to the user

15 years agoLogging format improvement
Waqas Hussain [Fri, 13 Feb 2009 14:14:36 +0000 (19:14 +0500)]
Logging format improvement

15 years agoFix to correct my email address in AUTHORS file
Matthew Wild [Fri, 13 Feb 2009 10:54:25 +0000 (10:54 +0000)]
Fix to correct my email address in AUTHORS file

15 years agoFixed: kick_old resource conflict resolution policy could fail with a backtrace
Waqas Hussain [Thu, 12 Feb 2009 13:23:00 +0000 (18:23 +0500)]
Fixed: kick_old resource conflict resolution policy could fail with a backtrace

15 years agoFixed: User resources not disconnected correctly on account delete
Waqas Hussain [Thu, 12 Feb 2009 13:09:17 +0000 (18:09 +0500)]
Fixed: User resources not disconnected correctly on account delete

15 years agostanza_router: Fix handling of iq from c2s to bare JIDs, thanks to jaharkes for spotting
Matthew Wild [Wed, 11 Feb 2009 19:53:09 +0000 (19:53 +0000)]
stanza_router: Fix handling of iq from c2s to bare JIDs, thanks to jaharkes for spotting

15 years agoAdd test to check for incorrect handling of iq from c2s to local bare JIDs
Matthew Wild [Wed, 11 Feb 2009 19:52:05 +0000 (19:52 +0000)]
Add test to check for incorrect handling of iq from c2s to local bare JIDs

15 years agoSmall fix to change verbosity level of subtests
Matthew Wild [Wed, 11 Feb 2009 19:50:58 +0000 (19:50 +0000)]
Small fix to change verbosity level of subtests

15 years agoCorrect tests for stanza routing IQs to bare JIDs
Matthew Wild [Wed, 11 Feb 2009 19:35:48 +0000 (19:35 +0000)]
Correct tests for stanza routing IQs to bare JIDs

15 years agoMerge with waqas for MUC/routing fixes
Matthew Wild [Wed, 11 Feb 2009 18:30:44 +0000 (18:30 +0000)]
Merge with waqas for MUC/routing fixes

15 years agoChange the to attribute of messages to the recipients' bare JID when the recipient...
Waqas Hussain [Wed, 11 Feb 2009 18:26:18 +0000 (23:26 +0500)]
Change the to attribute of messages to the recipients' bare JID when the recipient/resource is offline.

15 years agoStanza router: Message to bare JID fixes
Waqas Hussain [Wed, 11 Feb 2009 18:16:14 +0000 (23:16 +0500)]
Stanza router: Message to bare JID fixes
 - headline messages get sent to all non-negative priority available resource
 - all other messages get sent to the set of highest non-negative priority available resources
 - only messages of type chat and normal or missing type go into offline storage

15 years agoutil.stanza: Temporary fix for serializing attributes with namespaces
Matthew Wild [Wed, 11 Feb 2009 16:09:48 +0000 (16:09 +0000)]
util.stanza: Temporary fix for serializing attributes with namespaces

15 years agomod_muc: Room history
Waqas Hussain [Wed, 11 Feb 2009 14:41:37 +0000 (19:41 +0500)]
mod_muc: Room history

15 years agoFixed: Some presence stanzas from local users were not being routed correctly to...
Waqas Hussain [Wed, 11 Feb 2009 13:11:41 +0000 (18:11 +0500)]
Fixed: Some presence stanzas from local users were not being routed correctly to components (ghosts in mod_muc)

15 years agoFixed directed presence handling to work correctly for components
Waqas Hussain [Wed, 11 Feb 2009 13:09:41 +0000 (18:09 +0500)]
Fixed directed presence handling to work correctly for components

15 years agoChanged mod_muc to work with changed component manager
Waqas Hussain [Wed, 11 Feb 2009 13:07:20 +0000 (18:07 +0500)]
Changed mod_muc to work with changed component manager

15 years agomodulemanager initializes hosts[host] if it isn't already initialized when loading...
Waqas Hussain [Wed, 11 Feb 2009 12:57:48 +0000 (17:57 +0500)]
modulemanager initializes hosts[host] if it isn't already initialized when loading a module.

15 years agoComponent-host module loading code was breaking module reload, andduplicated older...
Waqas Hussain [Wed, 11 Feb 2009 12:56:42 +0000 (17:56 +0500)]
Component-host module loading code was breaking module reload, andduplicated older code. Changed to reuse older code.

15 years agonet.server: Fix nil table index assignment
Matthew Wild [Mon, 9 Feb 2009 14:24:49 +0000 (14:24 +0000)]
net.server: Fix nil table index assignment

15 years agostanza_router: Fix for when clients don't specify priority in initial presence
Matthew Wild [Mon, 9 Feb 2009 13:48:11 +0000 (13:48 +0000)]
stanza_router: Fix for when clients don't specify priority in initial presence

15 years agonet.server: Fix potential fatal error in server.lua
Matthew Wild [Mon, 9 Feb 2009 13:41:05 +0000 (13:41 +0000)]
net.server: Fix potential fatal error in server.lua

15 years agomod_bosh: Fix for 'invalid key to next' error when using BOSH
Matthew Wild [Mon, 9 Feb 2009 13:32:46 +0000 (13:32 +0000)]
mod_bosh: Fix for 'invalid key to next' error when using BOSH

15 years agoRemove redundant logging and debug printing from mod_bosh
Matthew Wild [Mon, 9 Feb 2009 13:31:10 +0000 (13:31 +0000)]
Remove redundant logging and debug printing from mod_bosh

15 years agoFix for nil handler error after close
Matthew Wild [Wed, 4 Feb 2009 18:53:56 +0000 (18:53 +0000)]
Fix for nil handler error after close

15 years agoFix for never checking if the first module for a host is already loaded (affects...
Matthew Wild [Wed, 4 Feb 2009 18:53:23 +0000 (18:53 +0000)]
Fix for never checking if the first module for a host is already loaded (affects global modules)

15 years agoRetagging 0.3.0, used up my mistake quota for today
Matthew Wild [Mon, 2 Feb 2009 18:05:21 +0000 (18:05 +0000)]
Retagging 0.3.0, used up my mistake quota for today

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