summaryrefslogtreecommitdiffstats
path: root/src/client/clui/Client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/clui/Client.cpp')
-rw-r--r--src/client/clui/Client.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/client/clui/Client.cpp b/src/client/clui/Client.cpp
index 9859794..9b697b6 100644
--- a/src/client/clui/Client.cpp
+++ b/src/client/clui/Client.cpp
@@ -71,9 +71,16 @@ void Client::HandleActions()
}
}
-void Client::AddMessage(const char *msg, int type)
+void Client::AddMessage(const char *msg, const char spec_char)
{
- chat->AddMessage(msg, type);
+ if(spec_char == USERS_CHAR)
+ players->SetPlayersList(msg);
+ else if(spec_char == GONLINE_CHAR)
+ tips->SetGeneralOnline(msg);
+ else if(spec_char == RONLINE_CHAR)
+ tips->SetRoomOnline(msg);
+ else
+ chat->AddMessage(msg, spec_char);
}
void Client::AddCharToBuffer(char ch)