From a3864dabc76ec6ab17e41087030fb15214616591 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 7 Apr 2022 20:25:07 +0100 Subject: Fix when halfop is not loaded. --- src/coremods/core_channel/cmd_invite.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.3.1-10-gc9f91