equal
deleted
inserted
replaced
62 Note: most likely you need notutf8 flag enabled. |
62 Note: most likely you need notutf8 flag enabled. |
63 **Arguments:** [log message type](#log.message.type), message, message... |
63 **Arguments:** [log message type](#log.message.type), message, message... |
64 |
64 |
65 <a name="mcabber.option"></a> |
65 <a name="mcabber.option"></a> |
66 ### mcabber.option |
66 ### mcabber.option |
67 Sets or gets value of given config option. |
67 Sets or gets value of given mcabber config option. |
68 You can specify nil as a value to delete option. |
68 You can specify nil as a value to delete option. |
69 If you omit option name, it returns hash table of all options. |
69 If you omit option name, it returns hash table of all options. |
70 **Arguments:** string (option name, optional), string (value, optional) |
70 **Arguments:** string (option name, optional), string (value, optional) |
71 **Return values:** string (value, optional) |
71 **Return values:** string (value, optional) |
72 |
72 |
297 |
297 |
298 <a name="mcabber.hook"></a> |
298 <a name="mcabber.hook"></a> |
299 ### mcabber.hook |
299 ### mcabber.hook |
300 Installs hook handler, returns an object, that you need to keep until |
300 Installs hook handler, returns an object, that you need to keep until |
301 hook handling is no more needed. |
301 hook handling is no more needed. |
302 **Arguments:** string (hook name), [hook function](#hook.function), integer (priority, optional) |
302 **Arguments:** string (hook name), [hook function](#hook.function), integer ([hook handler priority](#hook.handler.priority), optional) |
303 **Return values:** userdata (hook object) |
303 **Return values:** userdata (hook object) |
304 |
304 |
305 <a name="hook:del"></a> |
305 <a name="hook:del"></a> |
306 ### hook:del |
306 ### hook:del |
307 Unregisters given hook handler from mcabber. Object will be destroyed later. |
307 Unregisters given hook handler from mcabber. Object will be destroyed later. |