1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 14:13:14 +02:00

display modechars instead of modenames in cpanel channelmodes

This commit is contained in:
DukePyrolator
2013-09-29 04:23:33 +02:00
parent 84a02d2709
commit d5ecc39104
2 changed files with 2 additions and 2 deletions
@@ -60,7 +60,7 @@ bool WebCPanel::ChanServ::Modes::OnRequest(HTTPProvider *server, const Anope::st
{
/* "NAMEBASE" is a special mode from InspIRCds m_namedmodes, we dont want this here*/
if ((*it) && (*it)->type == MODE_LIST && (*it)->name != "NAMEBASE")
replacements["LISTMODES"] = (*it)->name;
replacements["LISTMODES"] = (*it)->mchar;
}
ChannelMode *cm = ModeManager::FindChannelModeByName(mode);
@@ -10,7 +10,7 @@
{IF EQ MODE YES}
{FOR LM IN LISTMODES}
<td><a href="/chanserv/modes?channel={ESCAPED_CHANNEL}&m={LM}" class="btn btn-sm btn-primary {IF EQ LM ESCAPED_MODE}disabled{END IF}">{LM}</a></td>
<td><a href="/chanserv/modes?channel={ESCAPED_CHANNEL}&m={LM}" class="btn btn-sm btn-primary {IF EQ LM ESCAPED_MODE}disabled{END IF}">+{LM}</a></td>
{END FOR}
<br>