diff options
author | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-22 00:13:36 +0100 |
---|---|---|
committer | Diogo Sousa <diogogsousa@gmail.com> | 2013-06-28 16:03:12 +0100 |
commit | 94186f7888d5a730e52e433a21698154dfcc4e2e (patch) | |
tree | c7ec4e195a92f0e81d130d1cfe47442e75a5637b /src/common/proto-irc.h | |
parent | ac5771377ea95287a99bfd5c8c99ec65e9bb069d (diff) |
First step towards message tags extension support
(see http://ircv3.atheme.org/specification/message-tags-3.2). In particular this commit implements a (very) dummy implementation sketch of the server-time extension (see http://ircv3.atheme.org/specification/message-tags-3.2 and #499).
Diffstat (limited to 'src/common/proto-irc.h')
-rw-r--r-- | src/common/proto-irc.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/common/proto-irc.h b/src/common/proto-irc.h index 2de9815c..7c8a483f 100644 --- a/src/common/proto-irc.h +++ b/src/common/proto-irc.h @@ -17,9 +17,26 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA */ +#include <time.h> +#include "hexchat.h" + #ifndef HEXCHAT_PROTO_H #define HEXCHAT_PROTO_H +#define MESSAGE_TAGS_DATA_INIT \ + { \ + .timestamp=(time_t)0, \ + } + +/* Message tag information that might be passed along with a server message + * + * See http://ircv3.atheme.org/specification/capability-negotiation-3.1 + */ +typedef struct +{ + time_t timestamp; +} message_tags_data; + void proto_fill_her_up (server *serv); #endif |