summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-01 00:35:15 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2005-03-01 00:35:15 +0000
commit4e33836bd5069a153bf7916756f48d7a8cb2696e (patch)
tree3d35d40e66a03ff7ebabf90abae156ce17209886 /src
parent03573ab1390c3522f8dfa5b4c7f514a6b767fe18 (diff)
BUILD : 1.7.8 (589) BUGS : 303 NOTES : normalizeBuffer() now strips two digit color codes
git-svn-id: svn://svn.anope.org/anope/trunk@589 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@439 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/botserv.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/src/botserv.c b/src/botserv.c
index 6cfae0989..ddabf4297 100644
--- a/src/botserv.c
+++ b/src/botserv.c
@@ -2570,14 +2570,30 @@ char *normalizeBuffer(char *buf)
if (isdigit(buf[i + 1])) {
i++;
+ /* not the best way to remove colors
+ * which are two digit but no worse then
+ * how the Unreal does with +S - TSL
+ */
+ if (isdigit(buf[i + 1])) {
+ i++;
+ }
+
/* Check for background color code
* and remove it as well
*/
if (buf[i + 1] == ',') {
i++;
- if (isdigit(buf[i + 1]))
+ if (isdigit(buf[i + 1])) {
i++;
+ }
+ /* not the best way to remove colors
+ * which are two digit but no worse then
+ * how the Unreal does with +S - TSL
+ */
+ if (isdigit(buf[i + 1])) {
+ i++;
+ }
}
}