From 3a6b7cf36e9de41577b129c59de96cce45f87ac6 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 16 Dec 2005 10:25:31 +0000 Subject: Changing stuff to using CommandParser class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2511 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/commands.cpp') 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) -- cgit v1.2.3