Are you using the latest git branch master ? If yes then cancel your XMPP registration in !
gnusocial -> settings -> IM and register again and it will send the confirmation code. And you have to add the bot to your #
xmpp friends BEFORE asking for a code