summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgeniusdex 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
committergeniusdex 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
commit4a0092fb3b31908f6339fd87be0bb03bb037799f (patch)
tree082867e498a573c3b2a7bed2b713a8efa891dcd6 /src
parent071a08c7ec0baba9060b00ef264768592ff36d9a (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
Diffstat (limited to 'src')
-rw-r--r--src/core/os_sgline.c5
1 files changed, 5 insertions, 0 deletions
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)) {