number of guests limited

This commit is contained in:
Kai Philipp
2016-06-29 18:06:28 +02:00
parent 6092b3c306
commit b6763bcfe8
5 changed files with 45 additions and 3 deletions
+15
View File
@@ -39,6 +39,7 @@ using namespace std;
SessionManager::SessionManager()
{
guestUsers = 0;
}
SessionManager::~SessionManager()
@@ -433,3 +434,17 @@ SessionManager::SendToAllButOneSessions(SenderHelper &sender, boost::shared_ptr<
}
}
void
SessionManager::IncrementGuest() {
guestUsers++;
}
void
SessionManager::DecrementGuest() {
guestUsers--;
}
int
SessionManager::GetGuestUsers() const {
return guestUsers;
}