few fixes
Merge branch 'libirc' of github.com:benapetr/wikimedia-bot into libirc