0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 16:34:13 +01:00

modules/s_control: Use HTML table for conf list.

This commit is contained in:
Jason Volk 2018-03-22 15:16:40 -07:00
parent d29b98b0ea
commit 438762ff8e

View file

@ -105,12 +105,12 @@ try
{ {
char val[512]; char val[512];
std::stringstream ss; std::stringstream ss;
ss << "<pre>"; ss << "<table>";
for(const auto &p : conf::items) for(const auto &p : conf::items)
ss << std::setw(32) << std::right << p.first ss << "<tr><td>" << std::setw(32) << std::right << p.first
<< " = " << p.second->get(val) << "</td><td>" << p.second->get(val)
<< "<br />"; << "</td></tr>";
ss << "</pre>"; ss << "</table>";
msghtml(control_room, m::me.user_id, ss.str()); msghtml(control_room, m::me.user_id, ss.str());
} }