diff options
| author | 2018-04-14 16:53:03 +0100 | |
|---|---|---|
| committer | 2018-04-16 15:07:06 +0100 | |
| commit | 7ef2f87e39bd22c7914caf7f2afbb1a3bf8fbd43 (patch) | |
| tree | 29c9efd1c7f1f2e3c9e8d058068c28d5b66c40e0 /src/modules/extra/m_mysql.cpp | |
| parent | Use an oper priv instead of a config flag for overriding nonicks. (diff) | |
Remove the default value in ConfigTag::get{Duration,Float,Int}.
Diffstat (limited to 'src/modules/extra/m_mysql.cpp')
| -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 a177951ce..6c65cd87e 100644 --- a/src/modules/extra/m_mysql.cpp +++ b/src/modules/extra/m_mysql.cpp @@ -272,7 +272,7 @@ class SQLConnection : public SQL::Provider std::string user = config->getString("user"); std::string pass = config->getString("pass"); std::string dbname = config->getString("name"); - int port = config->getInt("port"); + int port = config->getInt("port", 3306); bool rv = mysql_real_connect(connection, host.c_str(), user.c_str(), pass.c_str(), dbname.c_str(), port, NULL, 0); if (!rv) return rv; |
