void Chatserver::createOrRejoinLobbys()
{
	std::cout << "ChatServer::createOrRejoinLobbys()" << std::endl;

	std::vector<VisibleChatLobbyRecord> publicLobbies;
	rsMsgs->getListOfNearbyChatLobbies(publicLobbies);
	std::cout << "ChatServer: found " << publicLobbies.size() << " public lobbies." << std::endl;

	createOrRejoinLobby("Chatserver EN", "Welcome!", publicLobbies);
	createOrRejoinLobby("Chatserver DE", "Willkommen!", publicLobbies);
	createOrRejoinLobby("Chatserver ES", "Hola!", publicLobbies);
	createOrRejoinLobby("Chatserver FR", "Bonjour!", publicLobbies);
}
Пример #2
0
void Chatserver::createOrRejoinLobbys()
{
	std::cout << "ChatServer::createOrRejoinLobbys()" << std::endl;

	std::vector<VisibleChatLobbyRecord> publicLobbies;
	rsMsgs->getListOfNearbyChatLobbies(publicLobbies);
	std::cout << "ChatServer: found " << publicLobbies.size() << " public lobbies." << std::endl;

	// name, topic, id (optional), publicLobbies
	createOrRejoinLobby("Chatserver EN", "Welcome!", "b8e6eed03c11066d", publicLobbies);
	createOrRejoinLobby("Chatserver DE", "Willkommen!", publicLobbies);
	createOrRejoinLobby("Chatserver ES", "Hola!", publicLobbies);
	createOrRejoinLobby("Chatserver FR", "Bonjour!", publicLobbies);
	/*
	createOrRejoinLobby("PirateParty", "Arrrrr, http://antiprism.eu/", publicLobbies);
	createOrRejoinLobby("RetroShare on IRC", "This Lobby is bridged to #retroshare on Freenode IRC. Connect with IRC WebChat http://webchat.freenode.net/?channels=retroshare", publicLobbies);
	*/
}
Пример #3
0
void inline Chatserver::createOrRejoinLobby(const std::string lobbyName, const std::string lobbyTopic, const std::vector<VisibleChatLobbyRecord> &publicLobbies)
{
	createOrRejoinLobby(lobbyName, lobbyTopic, "", publicLobbies);
}