diff options
| author | 2022-12-10 14:30:09 +0000 | |
|---|---|---|
| committer | 2022-12-10 14:49:02 +0000 | |
| commit | b65974d0736682de511ad9920e6336b3f9692455 (patch) | |
| tree | c61dffcbf12eb50761ea69df8bedd0b031d95f85 /src/modules/m_sslinfo.cpp | |
| parent | Allow restricting an oper account based on services account. (diff) | |
Move <oper:host> check into OnPreOperLogin.
Diffstat (limited to 'src/modules/m_sslinfo.cpp')
| -rw-r--r-- | src/modules/m_sslinfo.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_sslinfo.cpp b/src/modules/m_sslinfo.cpp index 061285c42..2f3d4d0c8 100644 --- a/src/modules/m_sslinfo.cpp +++ b/src/modules/m_sslinfo.cpp @@ -368,10 +368,8 @@ public: if (!oper->getBool("autologin")) continue; // No autologin for this block. - if (!InspIRCd::MatchMask(oper->getString("host"), localuser->MakeHost(), localuser->MakeHostIP())) - continue; // Host doesn't match. - - user->OperLogin(info); + if (!user->OperLogin(info)) + continue; // Some other field does not match. } } |
