cthulhu-bot/bot.cpp
// Returns room pointer or NULL if room doesn't connected.

Returns room pointer or NULL if room doesn't connected.
Returns room pointer or NULL if room doesn ' t connected .
gloox::MUCRoom *ChtonianBot::getRoom(const std::string &name) const
{
    string room_name = finishRoomName(name);
    for(vector<MUCRoom *>::const_iterator room = rooms.begin();
        room != rooms.end(); room++)
    {
        if((*room)->name() + UTF8(L"@") + (*room)->service() == room_name)
        {
            return *room;
        }
    }
    return NULL;
}
gloox :: MUCRoom * ChtonianBot :: getRoom ( const std :: string & name ) const { string room_name = finishRoomName ( name ) ; for ( vector < MUCRoom * > :: const_iterator room = rooms . begin ( ) ; room != rooms . end ( ) ; room ++ ) { if ( ( * room ) -> name ( ) + UTF8 ( L" " ) + ( * room ) -> service ( ) == room_name ) { return * room ; } } return NULL ; }
Returns room pointer or NULL if room doesn't connected.
Returns room pointer or NULL if room doesn ' t connected .