From 14b9d1ac33ec30ede6912191270d8ada1a0c58cc Mon Sep 17 00:00:00 2001 From: w00t Date: Mon, 8 Sep 2008 21:21:44 +0000 Subject: 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 --- src/modules/extra/m_mysql.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3