From 16398df07d4ce1f1d4a2e43d97bc39043f8d44b5 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sun, 1 Sep 2013 14:38:41 +0200 Subject: Move prefix mode specific fields and getters into PrefixMode Add ModeHandler::IsPrefixMode() --- src/commands/cmd_invite.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/commands/cmd_invite.cpp') diff --git a/src/commands/cmd_invite.cpp b/src/commands/cmd_invite.cpp index 2ed05c550..dabc51aee 100644 --- a/src/commands/cmd_invite.cpp +++ b/src/commands/cmd_invite.cpp @@ -131,7 +131,7 @@ CmdResult CommandInvite::Handle (const std::vector& parameters, Use } case ServerConfig::INVITE_ANNOUNCE_DYNAMIC: { - ModeHandler* mh = ServerInstance->Modes->FindMode('h', MODETYPE_CHANNEL); + PrefixMode* mh = ServerInstance->Modes->FindPrefixMode('h'); prefix = (mh && mh->name == "halfop" ? mh->GetPrefix() : '@'); break; } -- cgit v1.2.3