0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-28 00:14:07 +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];
std::stringstream ss;
ss << "<pre>";
ss << "<table>";
for(const auto &p : conf::items)
ss << std::setw(32) << std::right << p.first
<< " = " << p.second->get(val)
<< "<br />";
ss << "</pre>";
ss << "<tr><td>" << std::setw(32) << std::right << p.first
<< "</td><td>" << p.second->get(val)
<< "</td></tr>";
ss << "</table>";
msghtml(control_room, m::me.user_id, ss.str());
}