]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Added extra command logging
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 5 Apr 2004 20:10:43 +0000 (20:10 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Mon, 5 Apr 2004 20:10:43 +0000 (20:10 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@394 e03df62e-2008-0410-955e-edbf42e46eb7

src/InspIRCd.layout
src/inspircd.cpp

index 5576f57ffc7d5640d1fb210673c59107a826729e..b7585f826256e2c726ab6513d5bb29e5326057be 100644 (file)
@@ -13,9 +13,9 @@ LeftChar=1
 [Editor_1]
 Open=1
 Top=0
-CursorCol=52
-CursorRow=785
-TopLine=770
+CursorCol=35
+CursorRow=4709
+TopLine=4666
 LeftChar=1
 
 [Editor_2]
@@ -218,7 +218,7 @@ LeftChar=1
 [Editor_27]
 Open=1
 Top=1
-CursorCol=44
-CursorRow=29
-TopLine=2
+CursorCol=33
+CursorRow=15
+TopLine=1
 LeftChar=1
index 5f6cebe5274d4a710a4fa87bb797df65d1bd302d..77a24b56851e01136f33fbe7c0cee360424c5235 100644 (file)
@@ -1578,7 +1578,7 @@ void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason)
                }
                else
                {
-                       WriteServ(src->fd,"482 %s %s :You must be at least a half-operator",src->nick, Ptr->name);
+                       WriteServ(src->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",src->nick, Ptr->name);
                }
                
                return;
@@ -1744,7 +1744,7 @@ int give_voice(userrec *user,char *dest,chanrec *chan,int status)
        }
        if (status < STATUS_HOP)
        {
-               WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, chan->name);
+               WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, chan->name);
                return 0;
        }
        else
@@ -1888,7 +1888,7 @@ int take_voice(userrec *user,char *dest,chanrec *chan,int status)
        }
        if (status < STATUS_HOP)
        {
-               WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, chan->name);
+               WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, chan->name);
                return 0;
        }
        else
@@ -2703,7 +2703,7 @@ void handle_mode(char **parameters, int pcnt, userrec *user)
 
                if ((cstatus(user,Ptr) < STATUS_HOP) && (Ptr))
                {
-                       WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, Ptr->name);
+                       WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, Ptr->name);
                        return;
                }
 
@@ -3292,7 +3292,7 @@ void handle_invite(char **parameters, int pcnt, userrec *user)
        {
                if (cstatus(user,c) < STATUS_HOP)
                {
-                       WriteServ(user->fd,"482 %s %s :You must be at least a half-operator",user->nick, c->name);
+                       WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, c->name);
                        return;
                }
 
@@ -3339,7 +3339,7 @@ void handle_topic(char **parameters, int pcnt, userrec *user)
                        {
                                if ((Ptr->topiclock) && (cstatus(user,Ptr)<STATUS_HOP))
                                {
-                                       WriteServ(user->fd,"482 %s %s :You must be at least a half-operator", user->nick, Ptr->name);
+                                       WriteServ(user->fd,"482 %s %s :You must be at least a half-operator to change modes on this channel", user->nick, Ptr->name);
                                        return;
                                }
                                
@@ -4669,6 +4669,8 @@ void process_command(userrec *user, char* cmd)
        }
        
        cmd_found = 0;
+       
+       log(DEBUG,"Second processing point");
 
        if (strlen(command)>MAXCOMMAND)
        {
@@ -4682,6 +4684,8 @@ void process_command(userrec *user, char* cmd)
                {
                        if (!strcmp(command, cmdlist[i].command))
                        {
+                               log(DEBUG,"Found matching command");
+
                                if (parameters)
                                {
                                        if (strcmp(parameters,""))
@@ -4702,6 +4706,8 @@ void process_command(userrec *user, char* cmd)
                                
                                if (user)
                                {
+                                       log(DEBUG,"Processing command");
+                                       
                                        /* activity resets the ping pending timer */
                                        user->nping = time(NULL) + 120;
                                        if ((items) < cmdlist[i].min_params)
@@ -4870,7 +4876,7 @@ void process_buffer(userrec *user)
        }
         log(DEBUG,"InspIRCd: processing: %s %s",user->nick,cmd);
        tidystring(cmd);
-       if (user)
+       if ((user) && (cmd))
        {
                process_command(user,cmd);
        }