fix for older weechat versions