From 15d46952214cfdc679cda1d463e11d1ab95329da Mon Sep 17 00:00:00 2001 From: peavey Date: Wed, 22 Nov 2006 17:44:34 +0000 Subject: Disallow mode prefix # since it will mess up /whois and /privmsg git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5786 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mode.cpp') diff --git a/src/mode.cpp b/src/mode.cpp index 560bd8d04..ea51ce71d 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -610,8 +610,9 @@ bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter) /* A mode prefix of ',' is not acceptable, it would fuck up server to server. * A mode prefix of ':' will fuck up both server to server, and client to server. + * A mode prefix of '#' will mess up /whois and /privmsg */ - if ((mh->GetPrefix() == ',') || (mh->GetPrefix() == ':')) + if ((mh->GetPrefix() == ',') || (mh->GetPrefix() == ':') || (mh->GetPrefix() == '#')) return false; mh->GetModeType() == MODETYPE_USER ? mask = MASK_USER : mask = MASK_CHANNEL; -- cgit v1.3.1-10-gc9f91