10 #ifndef PXO_CHAT_API_HEADER_FILE
11 #define PXO_CHAT_API_HEADER_FILE
16 #define PXO_CHAT_PORT 7117
19 #define PXO_CHAT_MOTD_PREFIX "!MOTD$#!"
20 #define PXO_CHAT_END_OF_MOTD_PREFIX "!EMOTD$#!"
23 #define CC_USER_JOINING 1 //A user had joined this channel (add him/her from the user listbox if any)
24 #define CC_USER_LEAVING 2 //A user has left the channel (remove him/her from the user listbox if any)
25 #define CC_DISCONNECTED 3 //We have been disconnected from the server (close the chat screen down)
26 #define CC_KICKED 4 //We were kicked out of the channel! (close the chat screen down?)
27 #define CC_NICKCHANGED 5 //Informing that your nickname has changed (data = "oldnick newnick")
28 #define CC_YOURCHANNEL 6 //data = name of the channel you are in. Only generated when you are joining #autoselect
30 #define MAXLOCALSTRING 600
char * GetChannelByUser(char *nickname)
const char * SendChatString(const char *line, int raw=0)
struct _Chat_command Chat_command
char * ChatGetString(void)
char * GetTrackerIdByUser(char *nickname)
void AddChannel(char *channel, ushort numusers, char *topic)
struct _Chat_user Chat_user
void RemoveAllChatUsers(void)
int SetNewChatChannel(char *channel)
char * ParseIRCMessage(char *Line, int iMode)
void AddChatCommandToQueue(int command, void *data, int len)
char * GetWordNum(int num, const char *l_String)
struct _Chat_channel Chat_channel
void DisconnectFromChatServer()
Chat_command * GetChatCommand()
void FlushChatCommandQueue(void)
void FlushChannelList(void)
int RemoveChatUser(char *nickname)
int ConnectToChatServer(char *serveraddr, char *nickname, char *trackerid)
char * GetChannelList(void)
GLenum GLsizei GLenum GLenum const GLvoid * data
Chat_command * GetChatCommandFromQueue(void)
int AddChatUser(char *nickname)