]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_httpd_stats.cpp
fixed some indentation and spacing in modules
[user/henk/code/inspircd.git] / src / modules / m_httpd_stats.cpp
index d0963b2af883ae37fcd495d41b9ac2de51b7e03c..d2205b80bc7cebaf9746a4037e4707481cc9ce61 100644 (file)
@@ -20,7 +20,7 @@
 
 class ModuleHttpStats : public Module
 {
-       
+
        std::string stylesheet;
        bool changed;
 
@@ -57,6 +57,9 @@ class ModuleHttpStats : public Module
                                case '&':
                                        ret += "&";
                                break;
+                               case '"':
+                                       ret += """;
+                               break;
                                default:
                                        if (*x < 32 || *x > 126)
                                        {
@@ -123,7 +126,7 @@ class ModuleHttpStats : public Module
                                        data << "<channelhalfops>" << c->GetHalfoppedUsers()->size() << "</channelhalfops>";
                                        data << "<channelvoices>" << c->GetVoicedUsers()->size() << "</channelvoices>";
                                        data << "<channeltopic>" << Sanitize(c->topic) << "</channeltopic>";
-                                       data << "<channelmodes>" << Sanitize(c->ChanModes(false)) << "</channelmodes>";
+                                       data << "<channelmodes>" << Sanitize(c->ChanModes(true)) << "</channelmodes>";
                                        CUList* ulist = c->GetUsers();
 
                                        for (CUList::iterator x = ulist->begin(); x != ulist->end(); ++x)
@@ -152,7 +155,7 @@ class ModuleHttpStats : public Module
                                }
 
                                data << "</userlist><serverlist>";
-                               
+
                                ProtoServerList sl;
                                ServerInstance->PI->GetServerList(sl);