diff options
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 8a25bd261..508c3b94c 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -6013,21 +6013,24 @@ void handle_m(char token,char* params,serverrec* source,serverrec* reply, char* if (user) { + log(DEBUG,"Found user: %s",user->nick); char* parameter = strtok(NULL," "); - strncpy(target,parameter,MAXBUF); while (parameter) { pars[index++] = parameter; parameter = strtok(NULL," "); } + log(DEBUG,"Calling merge_mode2"); merge_mode2(pars,--index,user); if (FindChan(pars[0])) { + log(DEBUG,"Target is channel"); WriteChannelLocal(FindChan(pars[0]), user, "MODE %s",original); } if (Find(pars[0])) { + log(DEBUG,"Target is nick"); WriteTo(user,Find(pars[0]),"MODE %s",original); } } |