This repository has been archived on 2021-04-17. You can view files and clone it, but cannot push or open issues or pull requests.
uIRC/include/structs.h

33 lines
678 B
C

#ifndef _UIRC_STRUCTS_INCLUDED
#define _UIRC_STRUCTS_INCLUDED
typedef struct uirc_tag {
const char* value;
bool clientbound;
bool present;
} IRC_Tag;
typedef struct name {
const char* nick;
const char* user;
const char* host;
const char* realname;
} IRC_User;
typedef struct uirc_message {
struct uirc_tags {
/* See https://ircv3.net/registry#tags for more information */
IRC_Tag account;
IRC_Tag batch;
IRC_Tag label;
IRC_Tag msgid;
IRC_Tag multiline_concat;
IRC_Tag time;
IRC_Tag typing;
IRC_Tag react;
IRC_Tag reply;
} tags;
IRC_User name;
signed short cmd;
const char* args[15]; /* 0-13 + NULL */
const char* trailing;
} IRC_Message;
#endif