mirror of
https://github.com/znc/znc.git
synced 2026-08-10 19:02:51 +02:00
listify two-column tables
excluded are the Q and partyline modules, as they are deprecated. There are some tables that have more than two columns, but could likely be easily modified, but this will be attempted at a later time.
This commit is contained in:
@@ -87,6 +87,7 @@ class CSASLMod : public CModule {
|
||||
CTable Mechanisms;
|
||||
Mechanisms.AddColumn(t_s("Mechanism"));
|
||||
Mechanisms.AddColumn(t_s("Description"));
|
||||
Mechanisms.SetStyle(CTable::ListStyle);
|
||||
|
||||
for (const auto& it : SupportedMechanisms) {
|
||||
Mechanisms.AddRow();
|
||||
@@ -94,6 +95,7 @@ class CSASLMod : public CModule {
|
||||
Mechanisms.SetCell(t_s("Description"), it.sDescription.Resolve());
|
||||
}
|
||||
|
||||
PutModule("");
|
||||
PutModule(t_s("The following mechanisms are available:"));
|
||||
PutModule(Mechanisms);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user