diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-10 20:53:54 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2010-02-10 20:53:54 +0000 |
commit | b790dee4873df308247655bb8ca88be9c483b536 (patch) | |
tree | e23cc7da9742707369f840f03335af1d64d4e281 /src/stats.cpp | |
parent | 99f3816bdd1657df3b4f18b6db6698eb95efc613 (diff) |
Fix incorrect check of mode permissions when displaying them
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12422 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/stats.cpp')
-rw-r--r-- | src/stats.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stats.cpp b/src/stats.cpp index fb4e5e7a5..a4b9fa133 100644 --- a/src/stats.cpp +++ b/src/stats.cpp @@ -279,10 +279,10 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results) for(char c='A'; c < 'z'; c++) { ModeHandler* mh = ServerInstance->Modes->FindMode(c, MODETYPE_USER); - if (mh && mh->NeedsOper() && tag->AllowedUserModes[c]) + if (mh && mh->NeedsOper() && tag->AllowedUserModes[c - 'A']) umodes.push_back(c); mh = ServerInstance->Modes->FindMode(c, MODETYPE_CHANNEL); - if (mh && mh->NeedsOper() && tag->AllowedChanModes[c]) + if (mh && mh->NeedsOper() && tag->AllowedChanModes[c - 'A']) cmodes.push_back(c); } results.push_back(sn+" 243 "+user->nick+" O "+tag->NameStr() + " " + umodes + " " + cmodes); |