Fix plugins

I fixed multiple plugin errors that I find out while testing using IRC transport (see https://github.com/tgrk/Ybot/issues/5 for more details about plugin errors)