Er, $self->bot->nick, not $self->nick.

We're in a plugin here, the bot is $self->bot.