summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 20:38:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-10 20:38:25 +0000
commit9b1ccadce2788b80a334990d4102eab5897503b0 (patch)
treeafdcaad7e47a08b5f52b4e5c1fa11ed65a9ec27a /src/inspircd.cpp
parentacf2c3bc71321cac71ef1dbc7c26c89a7dd8a076 (diff)
More 'm' mode fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@510 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp5
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);
}
}