summaryrefslogtreecommitdiff
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
parentf7be9d31e0004f11720da9db858710ff9f3eab5e (diff)
Changing stuff to using CommandParser class
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2511 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands.cpp14
-rw-r--r--src/userprocess.cpp2
2 files changed, 8 insertions, 8 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)
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 3e89d3fae..f800c11d1 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -207,7 +207,7 @@ void ProcessUser(userrec* cu)
userrec* old_comp = fd_ref_table[currfd];
// we're gonna re-scan to check if the nick is gone, after every
// command - if it has, we're gonna bail
- process_buffer(sanitized,current);
+ Parser->ProcessBuffer(sanitized,current);
// look for the user's record in case it's changed... if theyve quit,
// we cant do anything more with their buffer, so bail.
// there used to be an ugly, slow loop here. Now we have a reference