diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-01 20:46:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-01 20:46:19 +0000 |
commit | b6bcdbfcd18e17852e50e246a3d7d65a0cb2dba4 (patch) | |
tree | bad6cf1a7f7196b92b56579318207bdcaf0764ae /src/mode.cpp | |
parent | e506a4f56e1d0e28c4fc6397a83831344878be25 (diff) |
It all came down to a >1 where we needed a >0. Things should be stable now jamie
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5375 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index ceb801c69..b2cdd9afe 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -269,7 +269,9 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool chanrec* targetchannel = ServerInstance->FindChan(parameters[0]); userrec* targetuser = ServerInstance->FindNick(parameters[0]); - ServerInstance->Log(DEBUG,"ModeParser::Process start"); + ServerInstance->Log(DEBUG,"ModeParser::Process start: pcnt=%d",pcnt); + for (int j = 0; j < pcnt; j++) + ServerInstance->Log(DEBUG," parameters[%d] = '%s'", j, parameters[j]); LastParse = ""; @@ -418,6 +420,7 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool /* This mode expects a parameter, do we have any parameters left in our list to use? */ if (parameter_counter < pcnt) { + ServerInstance->Log(DEBUG,"parameter_counter = %d, pcnt = %d", parameter_counter, pcnt); parameter = parameters[parameter_counter++]; /* Yerk, invalid! */ |