doc: fix examples of function weechat_hook_connect (plugin API reference)