]> jfr.im git - solanum.git/blobdiff - ircd/hook.c
Merge pull request #298 from edk0/rejectcache
[solanum.git] / ircd / hook.c
index 24e924b6bc3f96dd7a00e670306a490ee59f2dfb..70defd1c3dbfc9f831dfacc0aad94a8fa8a65b10 100644 (file)
@@ -33,8 +33,6 @@
  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
  * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
  * POSSIBILITY OF SUCH DAMAGE.
- *
- * $Id: hook.c 712 2006-02-06 04:42:14Z gxti $
  */
 #include "stdinc.h"
 #include "hook.h"
@@ -48,17 +46,13 @@ int num_hooks = 0;
 int last_hook = 0;
 int max_hooks = HOOK_INCREMENT;
 
-#ifdef USE_IODEBUG_HOOKS
-int h_iosend_id;
-int h_iorecv_id;
-int h_iorecvctrl_id;
-#endif
 int h_burst_client;
 int h_burst_channel;
 int h_burst_finished;
 int h_server_introduced;
 int h_server_eob;
 int h_client_exit;
+int h_after_client_exit;
 int h_umode_changed;
 int h_new_local_user;
 int h_new_remote_user;
@@ -68,24 +62,21 @@ int h_privmsg_user;
 int h_privmsg_channel;
 int h_conf_read_start;
 int h_conf_read_end;
+int h_outbound_msgbuf;
+int h_rehash;
 
 void
 init_hook(void)
 {
        hooks = rb_malloc(sizeof(hook) * HOOK_INCREMENT);
 
-#ifdef USE_IODEBUG_HOOKS
-       h_iosend_id = register_hook("iosend");
-       h_iorecv_id = register_hook("iorecv");
-       h_iorecvctrl_id = register_hook("iorecvctrl");
-#endif
-
        h_burst_client = register_hook("burst_client");
        h_burst_channel = register_hook("burst_channel");
        h_burst_finished = register_hook("burst_finished");
        h_server_introduced = register_hook("server_introduced");
        h_server_eob = register_hook("server_eob");
        h_client_exit = register_hook("client_exit");
+       h_after_client_exit = register_hook("after_client_exit");
        h_umode_changed = register_hook("umode_changed");
        h_new_local_user = register_hook("new_local_user");
        h_new_remote_user = register_hook("new_remote_user");
@@ -95,6 +86,8 @@ init_hook(void)
        h_privmsg_channel = register_hook("privmsg_channel");
        h_conf_read_start = register_hook("conf_read_start");
        h_conf_read_end = register_hook("conf_read_end");
+       h_outbound_msgbuf = register_hook("outbound_msgbuf");
+       h_rehash = register_hook("rehash");
 }
 
 /* grow_hooktable()