From 1081ecdae80d10bcac0f8543d665c5579f271e61 Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 25 Apr 2012 14:29:50 -0400 Subject: Fixed non-debug build --- modules/commands/cs_mode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/commands/cs_mode.cpp') diff --git a/modules/commands/cs_mode.cpp b/modules/commands/cs_mode.cpp index 425a54a01..452b3b365 100644 --- a/modules/commands/cs_mode.cpp +++ b/modules/commands/cs_mode.cpp @@ -22,7 +22,7 @@ class CommandCSMode : public Command const Anope::string accesses[] = { "VOICE", "HALFOP", "OPDEOP", "PROTECT", "OWNER", "" }; const ChannelModeName modes[] = { CMODE_VOICE, CMODE_HALFOP, CMODE_OP, CMODE_PROTECT, CMODE_OWNER }; - ChannelModeStatus *cms = debug_cast(cm); + ChannelModeStatus *cms = anope_dynamic_static_cast(cm); AccessGroup access = ci->AccessFor(u); unsigned short u_level = 0; @@ -32,7 +32,7 @@ class CommandCSMode : public Command ChannelMode *cm2 = ModeManager::FindChannelModeByName(modes[i]); if (cm2 == NULL || cm2->Type != MODE_STATUS) continue; - ChannelModeStatus *cms2 = debug_cast(cm2); + ChannelModeStatus *cms2 = anope_dynamic_static_cast(cm2); if (cms2->Level > u_level) u_level = cms2->Level; } -- cgit