diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-08 21:21:44 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-09-08 21:21:44 +0000 |
commit | 14b9d1ac33ec30ede6912191270d8ada1a0c58cc (patch) | |
tree | d554c6f0e0384712a9ab7ef1d2c17f2cc8d1cd7a /src/modules | |
parent | 45805210f8c9bbce6222c50863a1671f562ccfbb (diff) |
Check the wrong way around is just stupid. ;p
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10480 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/extra/m_mysql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_mysql.cpp b/src/modules/extra/m_mysql.cpp index f6546d73e..be7166f13 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -740,7 +740,7 @@ ModuleSQL::ModuleSQL(InspIRCd* Me) : Module(Me), rehashing(false) MessagePipe = new MySQLListener(ServerInstance, 0, "127.0.0.1"); #endif - if (MessagePipe->GetFd()) + if (MessagePipe->GetFd() == -1) throw ModuleException("m_mysql: unable to create ITC pipe"); Dispatcher = new DispatcherThread(ServerInstance, this); |