summaryrefslogtreecommitdiff
path: root/src/commands.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 10:25:31 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-16 10:25:31 +0000
commit3a6b7cf36e9de41577b129c59de96cce45f87ac6 (patch)
tree63f480348cc0568be67b37a4c7d80b8afe8d78f9 /src/commands.cpp
parentf7be9d31e0004f11720da9db858710ff9f3eab5e (diff)
Changing stuff to using CommandParser class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2511 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands.cpp')
-rw-r--r--src/commands.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 4f57082ed..7709c94e0 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -105,7 +105,7 @@ void handle_join(char **parameters, int pcnt, userrec *user)
{
chanrec* Ptr;
- if (loop_call(handle_join,parameters,pcnt,user,0,0,1))
+ if (Parser->LoopCall(handle_join,parameters,pcnt,user,0,0,1))
return;
if (parameters[0][0] == '#')
{
@@ -118,13 +118,13 @@ void handle_part(char **parameters, int pcnt, userrec *user)
{
if (pcnt > 1)
{
- if (loop_call(handle_part,parameters,pcnt,user,0,pcnt-2,0))
+ if (Parser->LoopCall(handle_part,parameters,pcnt,user,0,pcnt-2,0))
return;
del_channel(user,parameters[0],parameters[1],false);
}
else
{
- if (loop_call(handle_part,parameters,pcnt,user,0,pcnt-1,0))
+ if (Parser->LoopCall(handle_part,parameters,pcnt,user,0,pcnt-1,0))
return;
del_channel(user,parameters[0],NULL,false);
}
@@ -498,7 +498,7 @@ void handle_names(char **parameters, int pcnt, userrec *user)
return;
}
- if (loop_call(handle_names,parameters,pcnt,user,0,pcnt-1,0))
+ if (Parser->LoopCall(handle_names,parameters,pcnt,user,0,pcnt-1,0))
return;
c = FindChan(parameters[0]);
if (c)
@@ -524,7 +524,7 @@ void handle_privmsg(char **parameters, int pcnt, userrec *user)
user->idle_lastmsg = TIME;
- if (loop_call(handle_privmsg,parameters,pcnt,user,0,pcnt-2,0))
+ if (Parser->LoopCall(handle_privmsg,parameters,pcnt,user,0,pcnt-2,0))
return;
if (parameters[0][0] == '$')
{
@@ -619,7 +619,7 @@ void handle_notice(char **parameters, int pcnt, userrec *user)
user->idle_lastmsg = TIME;
- if (loop_call(handle_notice,parameters,pcnt,user,0,pcnt-2,0))
+ if (Parser->LoopCall(handle_notice,parameters,pcnt,user,0,pcnt-2,0))
return;
if (parameters[0][0] == '$')
{
@@ -763,7 +763,7 @@ void handle_time(char **parameters, int pcnt, userrec *user)
void handle_whois(char **parameters, int pcnt, userrec *user)
{
userrec *dest;
- if (loop_call(handle_whois,parameters,pcnt,user,0,pcnt-1,0))
+ if (Parser->LoopCall(handle_whois,parameters,pcnt,user,0,pcnt-1,0))
return;
dest = Find(parameters[0]);
if (dest)