couple of weechat fncs from ugly file. not pretty yet, though.