basic support for weechat protocol based on weechat.js