diff options
| author | 2010-02-10 08:34:12 -0600 | |
|---|---|---|
| committer | 2010-08-03 17:32:35 -0400 | |
| commit | ac222736ddfdb3b04891814b7691aa2799b91ae2 (patch) | |
| tree | 4a4ee419ea8f39f6b12b8847f3ccab6de0592c83 /src/stats.cpp | |
| parent | Show listmodes in CHECK output (diff) | |
Convert allowed oper-only modes to use names instead of letters
Diffstat (limited to 'src/stats.cpp')
| -rw-r--r-- | src/stats.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/stats.cpp b/src/stats.cpp index 9c177c780..2d5b7aaa7 100644 --- a/src/stats.cpp +++ b/src/stats.cpp @@ -274,19 +274,8 @@ void InspIRCd::DoStats(char statschar, User* user, string_list &results) if (i->first[0] != ' ') continue; OperInfo* tag = i->second; - tag->init(); - std::string umodes; - std::string cmodes; - for(char c='A'; c < 'z'; c++) - { - ModeHandler* mh = ServerInstance->Modes->FindMode(c, MODETYPE_USER); - 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 - 'A']) - cmodes.push_back(c); - } - results.push_back(sn+" 243 "+user->nick+" O "+tag->NameStr() + " " + umodes + " " + cmodes); + // TODO actually format some permissions? + results.push_back(sn+" 243 "+user->nick+" O "+tag->NameStr()); } } break; |
