diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-22 17:44:34 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-22 17:44:34 +0000 |
commit | 15d46952214cfdc679cda1d463e11d1ab95329da (patch) | |
tree | 63ea13e9ed367a2405449d4deccf5e94b44ee62c /src | |
parent | 1c912588ddd8f14ae75f3166fffad84c44c6c4e6 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/mode.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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; |