From a9b90ecb4329498aba52da6aaa9812e3a70b8e11 Mon Sep 17 00:00:00 2001
From: brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Date: Mon, 26 Dec 2005 17:26:16 +0000
Subject: Adding hook type checking to event calls to speed them up

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2653 e03df62e-2008-0410-955e-edbf42e46eb7
---
 src/message.cpp | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

(limited to 'src/message.cpp')

diff --git a/src/message.cpp b/src/message.cpp
index de6e012ac..264871623 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -146,7 +146,7 @@ void chop(char* str)
 		return;
 	}
 	string temp = str;
-	FOREACH_MOD OnServerRaw(temp,false,NULL);
+	FOREACH_MOD(I_OnServerRaw,OnServerRaw(temp,false,NULL));
 	const char* str2 = temp.c_str();
 	snprintf(str,MAXBUF,"%s",str2);
 	if (strlen(str) >= 511)
@@ -213,10 +213,10 @@ void ChangeName(userrec* user, const char* gecos)
 	if (user->fd > -1)
 	{
 		int MOD_RESULT = 0;
-		FOREACH_RESULT(OnChangeLocalUserGECOS(user,gecos));
+		FOREACH_RESULT(I_OnChangeLocalUserGECOS,OnChangeLocalUserGECOS(user,gecos));
 		if (MOD_RESULT)
 			return;
-		FOREACH_MOD OnChangeName(user,gecos);
+		FOREACH_MOD(I_OnChangeName,OnChangeName(user,gecos));
 	}
 	strlcpy(user->fullname,gecos,MAXBUF);
 }
@@ -226,10 +226,10 @@ void ChangeDisplayedHost(userrec* user, const char* host)
         if (user->fd > -1)
         {
                 int MOD_RESULT = 0;
-                FOREACH_RESULT(OnChangeLocalUserHost(user,host));
+                FOREACH_RESULT(I_OnChangeLocalUserHost,OnChangeLocalUserHost(user,host));
                 if (MOD_RESULT)
                         return;
-		FOREACH_MOD OnChangeHost(user,host);
+		FOREACH_MOD(I_OnChangeHost,OnChangeHost(user,host));
         }
 	strlcpy(user->dhost,host,160);
 }
-- 
cgit v1.2.3