MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / GetChatCommand

Function GetChatCommand

netcon/mtclient/chat_api.cpp:374–378  ·  view source on GitHub ↗

Returns a structure which contains a command and possible some data (like a user joining or leaving) if one is waiting This tells you if you need to add a user from the userlist, remove a user, etc. Also for status messages, like if you get knocked off the server for some reason.

Source from the content-addressed store, hash-verified

372// etc. Also for status messages, like if you get knocked
373// off the server for some reason.
374Chat_command *GetChatCommand() {
375 if (!Socket_connected)
376 return nullptr;
377 return GetChatCommandFromQueue();
378}
379
380// This function returns a list of users in the current channel, in one
381// string, separated by spaces, terminated by a null

Callers

nothing calls this directly

Calls 1

GetChatCommandFromQueueFunction · 0.85

Tested by

no test coverage detected