From c84b3a14008daa1aac09b6f7047c779ebebe945a Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 5 Apr 2004 20:10:43 +0000 Subject: Added extra command logging git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@394 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/InspIRCd.layout | 12 ++++++------ src/inspircd.cpp | 20 +++++++++++++------- 2 files changed, 19 insertions(+), 13 deletions(-) (limited to 'src') diff --git a/src/InspIRCd.layout b/src/InspIRCd.layout index 5576f57ff..b7585f826 100644 --- a/src/InspIRCd.layout +++ b/src/InspIRCd.layout @@ -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 diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 5f6cebe52..77a24b568 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -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)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); } -- cgit v1.2.3