uhub/src
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
..
adc Added a chat only hub plugin that disables searching and connection setup. 2012-01-09 20:58:19 +01:00
core Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
network Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
plugin_api Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
plugins Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
tools Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
util Fixed minor issues found with static code analyzis (Clang). 2012-01-13 01:31:34 +01:00
system.h Cygwin/Mingw32 compile fixes. 2012-01-25 00:20:59 +01:00
uhub.h Split out the command buffer code to a generic buffer. 2011-12-21 13:53:53 +01:00