This should fix the issue with CAP LIST being ignored.

I do not have an environment I can test this on so someone should test this before it's merged.

But it should work, this issue was brought up by @nyuszika7h in weechat/weechat#8