summary refs log tree commit diff stats
path: root/src/common/hexchat-plugin.h
diff options
context:
space:
mode:
authorDiogo Sousa <diogogsousa@gmail.com>2013-07-09 23:11:28 +0100
committerDiogo Sousa <diogogsousa@gmail.com>2013-07-09 23:11:28 +0100
commit7101b7b864df280059750c0de4d6b9d41e907122 (patch)
treee294b2b2d5e7e08c744bd8ec891fc28543d17790 /src/common/hexchat-plugin.h
parent98aa62f637d4ced952a168cb19f8d2fb038c6a16 (diff)
Now hexchat_hook_server_attrs() and hexchat_hook_print_attrs() is called
when it should. This should close #661.
Diffstat (limited to 'src/common/hexchat-plugin.h')
-rw-r--r--src/common/hexchat-plugin.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/hexchat-plugin.h b/src/common/hexchat-plugin.h
index fd730459..f5583e2a 100644
--- a/src/common/hexchat-plugin.h
+++ b/src/common/hexchat-plugin.h
@@ -46,10 +46,13 @@ extern "C" {
 typedef struct _hexchat_plugin hexchat_plugin;
 typedef struct _hexchat_list hexchat_list;
 typedef struct _hexchat_hook hexchat_hook;
-typedef struct _hexchat_event_attrs hexchat_event_attrs;
 #ifndef PLUGIN_C
 typedef struct _hexchat_context hexchat_context;
 #endif
+typedef struct
+{
+	time_t server_time_utc; /* 0 if not used */
+} hexchat_event_attrs;
 
 #ifndef PLUGIN_C
 struct _hexchat_plugin
@@ -381,7 +384,9 @@ hexchat_pluginpref_list (hexchat_plugin *ph,
 #endif
 #define hexchat_hook_command ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_command)
 #define hexchat_hook_server ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_server)
+#define hexchat_hook_server_attrs ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_server_attrs)
 #define hexchat_hook_print ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_print)
+#define hexchat_hook_print_attrs ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_print_attrs)
 #define hexchat_hook_timer ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_timer)
 #define hexchat_hook_fd ((HEXCHAT_PLUGIN_HANDLE)->hexchat_hook_fd)
 #define hexchat_unhook ((HEXCHAT_PLUGIN_HANDLE)->hexchat_unhook)