diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-08-29 18:39:54 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2007-08-29 18:39:54 +0000 |
commit | 4a0092fb3b31908f6339fd87be0bb03bb037799f (patch) | |
tree | 082867e498a573c3b2a7bed2b713a8efa891dcd6 | |
parent | 071a08c7ec0baba9060b00ef264768592ff36d9a (diff) |
BUILD : 1.7.19 (1287) BUGS : 761 NOTES : Fixed OperServ SGLINE to now remove trailing spaces from the mask... this is not 100% syntactically correct, but spaces on the end are not usually needed anyways
git-svn-id: svn://svn.anope.org/anope/trunk@1287 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1005 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/core/os_sgline.c | 5 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 11 insertions, 1 deletions
@@ -28,6 +28,7 @@ Anope Version S V N 08/28 F We now check required commands existance on inspircd11 protocol. [#773] 08/28 F SuperAdmin now always overrules channel founder. [#770] 08/29 F InspIRCD11 protocol now uses SVSJOIN/PART instead of SAJOIN/PART. [#772] +08/29 F OperServ SGLINE ADD now strips a trailing space from the mask. [#761] 08/29 F TS6 UID generation for all supported TS6 IRCDs. [#731] Provided by nenolod <nenolod@nenolod.net> - 2007 diff --git a/src/core/os_sgline.c b/src/core/os_sgline.c index 5bc7c3f08..7185b885f 100644 --- a/src/core/os_sgline.c +++ b/src/core/os_sgline.c @@ -115,6 +115,11 @@ int do_sgline(User * u) } if (mask && (reason = strtok(NULL, ""))) { + /* Clean up the last character of the mask if it is a space. */ + size_t masklen = strlen(mask); + if (mask[masklen - 1] == ' ') + mask[masklen - 1] = '\0'; + /* We first do some sanity check on the proposed mask. */ if (mask && strspn(mask, "*?") == strlen(mask)) { diff --git a/version.log b/version.log index 42e015abf..602ab960c 100644 --- a/version.log +++ b/version.log @@ -9,10 +9,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="19" VERSION_EXTRA="-svn" -VERSION_BUILD="1286" +VERSION_BUILD="1287" # $Log$ # +# BUILD : 1.7.19 (1287) +# BUGS : 761 +# NOTES : Fixed OperServ SGLINE to now remove trailing spaces from the mask... this is not 100% syntactically correct, but spaces on the end are not usually needed anyways +# # BUILD : 1.7.19 (1286) # BUGS : 731 # NOTES : Fixed TS6 UID generation |