summary refs log tree commit diff stats
path: root/src/common/proto-irc.h
diff options
context:
space:
mode:
authorlinuxdaemon <linuxdaemon@users.noreply.github.com>2019-01-30 18:46:13 -0600
committerPatrick <tingping@tingping.se>2019-01-30 19:46:13 -0500
commit804f959a1d0c9bfe88166a7541af4371460b468b (patch)
tree2772bc3c9c1a1f56fa8419434e0b6f280f0197ab /src/common/proto-irc.h
parent7abeb10cf1f82fbad4d167f9e6f6918e1f47650b (diff)
Remove : from various trailing parameters (#2301)
Partial fix for #2271 

This isn't an exhaustive list, but it's everything I could find. The bug still exists in the parser though, this is just a workaround for the moment
Diffstat (limited to 'src/common/proto-irc.h')
-rw-r--r--src/common/proto-irc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common/proto-irc.h b/src/common/proto-irc.h
index a7b4029c..6c075795 100644
--- a/src/common/proto-irc.h
+++ b/src/common/proto-irc.h
@@ -28,6 +28,8 @@
 		(time_t)0, /* timestamp */		\
 	}
 
+#define STRIP_COLON(word, word_eol, idx) (word)[(idx)][0] == ':' ? (word_eol)[(idx)]+1 : (word)[(idx)]
+
 /* Message tag information that might be passed along with a server message
  *
  * See http://ircv3.atheme.org/specification/capability-negotiation-3.1