# HG changeset patch # User Myhailo Danylenko # Date 1458518642 -7200 # Node ID 0cf6c938ac030b06778630efba37e2fd6d27cfc6 # Parent 5d90caa7fb2cef5c1cc091237e9f58570d9d642f api: Minor fix diff -r 5d90caa7fb2c -r 0cf6c938ac03 docs/api.mdwn --- a/docs/api.mdwn Thu Mar 17 23:17:00 2016 +0200 +++ b/docs/api.mdwn Mon Mar 21 02:04:02 2016 +0200 @@ -64,7 +64,7 @@ ### mcabber.option -Sets or gets value of given config option. +Sets or gets value of given mcabber config option. You can specify nil as a value to delete option. If you omit option name, it returns hash table of all options. **Arguments:** string (option name, optional), string (value, optional) @@ -299,7 +299,7 @@ ### mcabber.hook Installs hook handler, returns an object, that you need to keep until hook handling is no more needed. -**Arguments:** string (hook name), [hook function](#hook.function), integer (priority, optional) +**Arguments:** string (hook name), [hook function](#hook.function), integer ([hook handler priority](#hook.handler.priority), optional) **Return values:** userdata (hook object) diff -r 5d90caa7fb2c -r 0cf6c938ac03 lua.c --- a/lua.c Thu Mar 17 23:17:00 2016 +0200 +++ b/lua.c Mon Mar 21 02:04:02 2016 +0200 @@ -1476,7 +1476,7 @@ /// mcabber.hook /// Installs hook handler, returns an object, that you need to keep until /// hook handling is no more needed. -/// A: string (hook name), hook function, integer (priority, optional) +/// A: string (hook name), hook function, integer (hook handler priority, optional) /// R: userdata (hook object) static int lua_main_hook (lua_State *L) {