hexchat/hexchat — pull request #689 by TingPing (2013-07-19 14:29:53+00:00)
Title: Python: Add support for attributes in hooks

Would like feedback/testing on the changes.

I couldn't find an easy way to add attributes to the callbacks like was possible with javascript so it adds the *_attrs* version of the hook functions just like the C api and it just adds *emit_print_at* to include the time instead of forcing them to create an attributes object each time.

Here is a script I wrote using this - https://github.com/TingPing/plugins/blob/master/HexChat/mymsg.py