]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/extra/m_pgsql.cpp
cmd_who Hide +i users when listing users on a server and hidewhois is off
[user/henk/code/inspircd.git] / src / modules / extra / m_pgsql.cpp
index 1e2ef56ea070ff72f159e8dbff88240dc35f27b5..7751f9b82d33e5bdb5e394115f2ea5d8ac9b7e17 100644 (file)
@@ -152,7 +152,7 @@ class SQLConn : public SQLProvider, public EventHandler
        {
                if (!DoConnect())
                {
-                       ServerInstance->Logs->Log("m_pgsql",DEFAULT, "WARNING: Could not connect to database " + tag->getString("id")); 
+                       ServerInstance->Logs->Log("m_pgsql",DEFAULT, "WARNING: Could not connect to database " + tag->getString("id"));
                        DelayReconnect();
                }
        }
@@ -331,7 +331,7 @@ restart:
                        }
                        else
                        {
-                               qinprog.q = "";
+                               qinprog.q.clear();
                        }
                }
                else
@@ -513,7 +513,7 @@ class ModulePgSQL : public Module
                ReadConf();
 
                Implementation eventlist[] = { I_OnUnloadModule, I_OnRehash };
-               ServerInstance->Modules->Attach(eventlist, this, 2);
+               ServerInstance->Modules->Attach(eventlist, this, sizeof(eventlist)/sizeof(Implementation));
        }
 
        virtual ~ModulePgSQL()