summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 21:18:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 21:18:39 +0000
commitc8240fcba32a3467bebbbcc43084979bdeb6c278 (patch)
tree7f1922c2a4ff052715a568014bdd5eec391a3a18
parentf3dff3c86ee68534dd181faa102109661fe6aa0f (diff)
Fixed LoopCall method calls
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2541 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/cmd_join.cpp4
-rw-r--r--src/cmd_names.cpp4
-rw-r--r--src/cmd_notice.cpp4
-rw-r--r--src/cmd_part.cpp8
-rw-r--r--src/cmd_privmsg.cpp4
-rw-r--r--src/cmd_whois.cpp4
6 files changed, 14 insertions, 14 deletions
diff --git a/src/cmd_join.cpp b/src/cmd_join.cpp
index 5e4f886a7..428f83e56 100644
--- a/src/cmd_join.cpp
+++ b/src/cmd_join.cpp
@@ -66,8 +66,8 @@ void cmd_join::Handle (char **parameters, int pcnt, userrec *user)
{
chanrec* Ptr;
- /*if (ServerInstance->Parser->LoopCall(handle_join,parameters,pcnt,user,0,0,1))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,0,1))
+ return;
if (parameters[0][0] == '#')
{
Ptr = add_channel(user,parameters[0],parameters[1],false);
diff --git a/src/cmd_names.cpp b/src/cmd_names.cpp
index e319ad31e..5bd7c8235 100644
--- a/src/cmd_names.cpp
+++ b/src/cmd_names.cpp
@@ -72,8 +72,8 @@ void cmd_names::Handle (char **parameters, int pcnt, userrec *user)
return;
}
- /*if (ServerInstance->Parser->LoopCall(handle_names,parameters,pcnt,user,0,pcnt-1,0))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0))
+ return;
c = FindChan(parameters[0]);
if (c)
{
diff --git a/src/cmd_notice.cpp b/src/cmd_notice.cpp
index 52c954d4e..c3354a4fa 100644
--- a/src/cmd_notice.cpp
+++ b/src/cmd_notice.cpp
@@ -69,8 +69,8 @@ void cmd_notice::Handle (char **parameters, int pcnt, userrec *user)
user->idle_lastmsg = TIME;
- /*if (ServerInstance->Parser->LoopCall(handle_notice,parameters,pcnt,user,0,pcnt-2,0))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0))
+ return;
if (parameters[0][0] == '$')
{
// notice to server mask
diff --git a/src/cmd_part.cpp b/src/cmd_part.cpp
index 23daecb76..4198d0be4 100644
--- a/src/cmd_part.cpp
+++ b/src/cmd_part.cpp
@@ -66,14 +66,14 @@ void cmd_part::Handle (char **parameters, int pcnt, userrec *user)
{
if (pcnt > 1)
{
- /*if (ServerInstance->Parser->LoopCall(handle_part,parameters,pcnt,user,0,pcnt-2,0))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0))
+ return;
del_channel(user,parameters[0],parameters[1],false);
}
else
{
- /*if (ServerInstance->Parser->LoopCall(handle_part,parameters,pcnt,user,0,pcnt-1,0))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0))
+ return;
del_channel(user,parameters[0],NULL,false);
}
}
diff --git a/src/cmd_privmsg.cpp b/src/cmd_privmsg.cpp
index 9b5c1348c..a62077097 100644
--- a/src/cmd_privmsg.cpp
+++ b/src/cmd_privmsg.cpp
@@ -69,8 +69,8 @@ void cmd_privmsg::Handle (char **parameters, int pcnt, userrec *user)
user->idle_lastmsg = TIME;
- /*if (ServerInstance->Parser->LoopCall(handle_privmsg,parameters,pcnt,user,0,pcnt-2,0))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-2,0))
+ return;
if (parameters[0][0] == '$')
{
// notice to server mask
diff --git a/src/cmd_whois.cpp b/src/cmd_whois.cpp
index 09ef9c67a..9361fed39 100644
--- a/src/cmd_whois.cpp
+++ b/src/cmd_whois.cpp
@@ -65,8 +65,8 @@ extern userrec* fd_ref_table[65536];
void cmd_whois::Handle (char **parameters, int pcnt, userrec *user)
{
userrec *dest;
- /*if (ServerInstance->Parser->LoopCall(handle_whois,parameters,pcnt,user,0,pcnt-1,0))
- return;*/
+ if (ServerInstance->Parser->LoopCall(this,parameters,pcnt,user,0,pcnt-1,0))
+ return;
dest = Find(parameters[0]);
if (dest)
{