diff options
| author | 2022-04-07 20:25:07 +0100 | |
|---|---|---|
| committer | 2022-04-07 20:25:07 +0100 | |
| commit | a3864dabc76ec6ab17e41087030fb15214616591 (patch) | |
| tree | 6389acd8f0abbd04d42b3d43018616bf9d6a86bd /src | |
| parent | Expose the invite announcement level to modules. (diff) | |
Fix <security announceinvites="dynamic"> when halfop is not loaded.
Diffstat (limited to 'src')
| -rw-r--r-- | src/coremods/core_channel/cmd_invite.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/coremods/core_channel/cmd_invite.cpp b/src/coremods/core_channel/cmd_invite.cpp index 0feaf78ce..258c8c643 100644 --- a/src/coremods/core_channel/cmd_invite.cpp +++ b/src/coremods/core_channel/cmd_invite.cpp @@ -161,6 +161,7 @@ CmdResult CommandInvite::Handle(User* user, const Params& parameters) minrank = OP_VALUE; break; } + case Invite::ANNOUNCE_DYNAMIC: { PrefixMode* mh = ServerInstance->Modes->FindPrefixMode('h'); @@ -169,11 +170,16 @@ CmdResult CommandInvite::Handle(User* user, const Params& parameters) prefix = mh->GetPrefix(); minrank = mh->GetPrefixRank(); } + else + { + prefix = '@'; + minrank = OP_VALUE; + } break; } + default: - { - } + break; } CUList excepts; |
