]> jfr.im git - solanum.git/blobdiff - include/hook.h
Remove $Id tags from everything.
[solanum.git] / include / hook.h
index 70d1b5ad1b540a15b53bd2404c6a43fde216f131..0198ae7b2c322c1623e79200e0e7a024151c5fcf 100644 (file)
@@ -1,8 +1,6 @@
 /*
  * Copyright (C) 2004-2005 Lee Hardy <lee -at- leeh.co.uk>
  * Copyright (C) 2004-2005 ircd-ratbox development team
- *
- * $Id: hook.h 906 2006-02-21 02:25:43Z nenolod $
  */
 #ifndef INCLUDED_HOOK_H
 #define INCLUDED_HOOK_H
@@ -34,6 +32,7 @@ extern int h_privmsg_channel;
 extern int h_privmsg_user;
 extern int h_conf_read_start;
 extern int h_conf_read_end;
+extern int h_outbound_msgbuf;
 
 void init_hook(void);
 int register_hook(const char *name);
@@ -41,18 +40,26 @@ void add_hook(const char *name, hookfn fn);
 void remove_hook(const char *name, hookfn fn);
 void call_hook(int id, void *arg);
 
+typedef struct
+{
+       struct Client *client;
+       void *arg1;
+       void *arg2;
+} hook_data;
+
 typedef struct
 {
        struct Client *client;
        const void *arg1;
        const void *arg2;
-} hook_data;
+} hook_cdata;
 
 typedef struct
 {
        struct Client *client;
        const void *arg1;
        int arg2;
+       int result;
 } hook_data_int;
 
 typedef struct
@@ -85,6 +92,7 @@ typedef struct
        struct Client *target;
        int approved;
        int dir;
+       const char *modestr;
 } hook_data_channel_approval;
 
 typedef struct