summaryrefslogtreecommitdiffstats
path: root/src/server/ChatServer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/server/ChatServer.cpp')
-rw-r--r--src/server/ChatServer.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/server/ChatServer.cpp b/src/server/ChatServer.cpp
index 2d700e9..7b6a9ea 100644
--- a/src/server/ChatServer.cpp
+++ b/src/server/ChatServer.cpp
@@ -12,7 +12,7 @@
const int qlen_for_listen = 6;
ChatServer::ChatServer(EventSelector *sel, DatabaseManager *db, int fd)
- : FdHandler(fd), the_selector(sel), dbase(db)
+ : FdHandler(fd), the_selector(sel), dbase(db), room(0)
{
the_selector->Add(this);
lobby = new ChatRoom(this, std_id_lobby, 0);
@@ -163,6 +163,8 @@ void ChatServer::Handle(bool r, bool w)
talkers->AddUser(u);
lobby->AddSession(u);
the_selector->Add(u);
+
+ u->Send("Welcome to WantChat! What is your name?");
}
///////////////////////////////////////////////////////////////