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:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user