diff options
Diffstat (limited to '')
-rw-r--r-- | network.h | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -41,6 +41,9 @@ struct remote_server { struct string address; struct string name; struct string via; // netsplit purposes + + // TODO: this v + struct table user_list; // TODO: metadata }; @@ -57,11 +60,24 @@ struct user_info { struct string realname; struct string opertype; + // TODO: this v + struct table channel_list; + + struct table metadata; +}; + +struct channel_info { + uint64_t ts; + + struct table modes; // TODO: Parse modes properly + struct table user_list; // points to corresponding user_info struct (if available, currently not) + struct table metadata; }; extern struct table server_network_commands; extern struct table client_network_commands; +extern struct table channel_list; extern struct table server_list; extern struct table user_list; @@ -78,3 +94,5 @@ extern int initservernetwork(void); extern int initclientnetwork(void); #define SENDCLIENT(x) write(client_fd, x.data, x.len) + +extern int PRIVMSG(struct string source, struct string target, struct string message); |