diff options
| author | 2024-09-13 12:11:11 +0100 | |
|---|---|---|
| committer | 2024-09-13 12:11:11 +0100 | |
| commit | a6ea949d4dbd7ab1ea972919ef7d8db312d31f6c (patch) | |
| tree | 842d0275cd6c1d0003a28826da16cf02a89f2ed1 /src/modules/extra/m_pgsql.cpp | |
| parent | Only remove extbans on unload if provided by the right module. (diff) | |
Use reference<>::ptr() in more places.
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -rw-r--r-- | src/modules/extra/m_pgsql.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 63074fef3..e4e656771 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -677,7 +677,7 @@ bool ReconnectTimer::Tick() void SQLConn::DelayReconnect() { status = DEAD; - ModulePgSQL* mod = (ModulePgSQL*)(Module*)creator; + auto* mod = static_cast<ModulePgSQL*>(creator.ptr()); ConnMap::iterator it = mod->connections.find(conf->getString("id")); if (it != mod->connections.end()) |
