rough draft of a lua script for weechat