summaryrefslogtreecommitdiff
path: root/src/modules/extra
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/extra')
-rw-r--r--src/modules/extra/m_mysql.cpp2
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);