mirror of
https://github.com/anope/anope.git
synced 2026-07-10 22:03:13 +02:00
Get rid of the internal block wrapper.
This only existed for compatibility with old 2.0 modules and 2.1 has already broken compatibility with them.
This commit is contained in:
@@ -50,7 +50,7 @@ public:
|
||||
|
||||
void Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) override
|
||||
{
|
||||
Configuration::Block &block = Config->GetCommand(source);
|
||||
const auto &block = Config->GetCommand(source);
|
||||
const Anope::string &mode = block.Get<Anope::string>("mode", "BAN");
|
||||
ChannelMode *cm = ModeManager::FindChannelModeByName(mode);
|
||||
if (cm == NULL)
|
||||
|
||||
Reference in New Issue
Block a user