uhub/autotest
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
..
test_commands.tcc Command arguments handling + cleanups 2012-04-18 23:03:05 +02:00
test_credentials.tcc Added autotests for credentials handling. 2010-07-29 11:22:04 +02:00
test_eventqueue.tcc Fix autotests for event queue. 2009-03-20 17:42:29 +01:00
test_hub.tcc Cleanup reference adc message reference counting somewhat. 2010-02-16 20:51:10 +01:00
test_inf.tcc Fix autotest crash. 2010-02-11 01:18:45 +01:00
test_ipfilter.tcc Fixes to tests. 2009-07-26 06:27:16 +02:00
test_list.tcc First git commit. 2009-02-19 17:14:09 +01:00
test_memory.tcc Cleanup reference adc message reference counting somewhat. 2010-02-16 20:51:10 +01:00
test_message.tcc Fix a failing autotest. 2009-08-31 20:37:47 +02:00
test_misc.tcc Fixed utf8 parse issue. 2009-03-24 00:21:38 +01:00
test_sid.tcc Added test cases for sid allocation. 2010-02-18 16:02:13 +01:00
test_tiger.tcc First git commit. 2009-02-19 17:14:09 +01:00
test_timer.tcc Added some automatic tests for the timeout handling. 2010-02-25 17:57:50 +01:00
test_tokenizer.tcc Fix bug in config parser where 'foo=bar' did not work, but 'foo = bar' did work due to extra whitespace between tokens. 2010-11-18 22:43:48 +01:00
test_usermanager.tcc Various fixes for epoll handling without libevent. 2010-01-19 17:52:58 +01:00