diff options
-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 |