summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-25 04:19:05 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-25 04:19:05 +0000
commitfd8514f21d31ed03a973b4f5c43bb15696ce7d4a (patch)
treec86b89d4660158edba1ca3b895dd3a5f054798d5
parentd2d53396b9909cd12707f2d91fea1bdb647feb06 (diff)
Fixed strange leading ":" on remote Z/K/G lines
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1183 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/commands.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index d53bd9726..2727be777 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -2439,6 +2439,7 @@ void handle_hash(char token,char* params,serverrec* source,serverrec* reply, cha
char* create_time = strtok(NULL," ");
char* duration = strtok(NULL," :");
char* reason = strtok(NULL,"\r\n");
+ reason++;
add_gline(atoi(duration),(const char*)who,(const char*)reason,(const char*)mask);
// we must update the creation time on this gline
// now that we've added it, or it wont expire at the right time.
@@ -2480,6 +2481,7 @@ void handle_add_sqline(char token,char* params,serverrec* source,serverrec* repl
char* create_time = strtok(NULL," ");
char* duration = strtok(NULL," :");
char* reason = strtok(NULL,"\r\n");
+ reason++;
add_qline(atoi(duration),(const char*)who,(const char*)reason,(const char*)mask);
// we must update the creation time on this gline
// now that we've added it, or it wont expire at the right time.
@@ -2522,6 +2524,7 @@ void handle_add_szline(char token,char* params,serverrec* source,serverrec* repl
char* create_time = strtok(NULL," ");
char* duration = strtok(NULL," :");
char* reason = strtok(NULL,"\r\n");
+ reason++;
add_zline(atoi(duration),(const char*)who,(const char*)reason,(const char*)mask);
// we must update the creation time on this gline
// now that we've added it, or it wont expire at the right time.