void Register::done ( const char* /*URL*/, void * data, unsigned int size, bool complete ) { if ( size == 2 ) { _data.append((char*)data, size); if ( _data.compare("OK") == 0 ) { bz_sendTextMessage(BZ_SERVER, _playerId,"Your registration was successfull."); bz_sendTextMessagef(BZ_SERVER, _playerId,"To complete the registration check your email (%s) and follow the instructions in it.", _email.c_str()); bz_sendTextMessage(BZ_SERVER, _playerId,"Thank you for playing in the 1vs1 league !"); } } bz_sendTextMessagef(BZ_SERVER, _playerId,"complete => %d -- size => %d ",complete, size); }