Go to file
Jan Vidar Krey df7bbc094f Command arguments handling + cleanups
Fix bug #185 - Args of !commands lost/damaged.
All string arguments were incorrectly freed after being added to the argument list for a command.
Instead this fix makes sure it is properly copied into a new string, and by doing so this requires
a new API for dealing with hub command arguments in a type safe manner, and also allows for each
argument to be cleaned up properly when the command is no longer needed.

This also fixes issues with parse errors for certain types, and optional arguments (previously it was impossible
to tell the difference for an integer with value 0 or if no integer was given).

All arguments can now be accessed through the new functions
hub_command_arg_reset() and hub_command_arg_next().

These functions are also exposed to plug-ins.

The argument type notations for 'n' has changed to mean nick (string),
and 'u' is used for a user (struct hub_user - must be online).
2012-04-18 23:03:05 +02:00
admin Cleanup after creating debian packages. 2009-03-24 23:16:09 +01:00
autotest Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
debian Update to version 0.3.2 2010-05-31 17:13:40 +02:00
doc - update ./doc/uhub.conf example file for mod_chat_only.so 2012-01-31 14:48:29 +04:00
src Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
thirdparty Added sqlite as a git submodule. 2011-12-28 18:08:11 +01:00
tools - add comment in sqlite conver script 2010-11-22 10:39:39 +03:00
vs2010 Added VS2010 project for the uhub-passwd tool. 2011-12-22 01:51:10 +01:00
.gitignore Update .gitignore, made it more precise. 2010-07-29 10:44:25 +02:00
.gitmodules Added sqlite as a git submodule. 2011-12-28 18:08:11 +01:00
AUTHORS Added support for dynamic commands. 2011-12-09 10:29:50 +01:00
BSDmakefile kqueue() BSD fixes 2010-01-27 17:50:02 +01:00
BUGS Document new bugs strategies 2009-03-16 17:35:08 +01:00
COPYING First git commit. 2009-02-19 17:14:09 +01:00
ChangeLog Update to version 0.3.2 2010-05-31 17:13:40 +02:00
GNUmakefile Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
README Fix documentation about file descriptor limits. 2010-02-05 22:40:35 +01:00
TODO Add TODO file. Some modify example uhub.conf 2010-01-14 09:46:55 +03:00
version.h Updated the copyright to 2012 and git version display. 2012-01-04 11:08:07 +01:00

README

Welcome and thanks for downloading uHub, a high performance ADC p2p hub.

For the official documentation, bugs and other information, please visit:
http://www.uhub.org/

For a list of compatible ADC clients, see:
http://www.adcportal.com/wiki/index.php/ADC_Software_List#Client_Software