mirror of
https://github.com/anope/anope.git
synced 2026-06-26 07:16:38 +02:00
Replaced some static_casts related to modes with dynamic_cast - its a bit safer
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2715 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -713,7 +713,7 @@ char ModeManager::GetStatusChar(char Value)
|
||||
cm = it->second;
|
||||
if (cm->Type == MODE_STATUS)
|
||||
{
|
||||
cms = static_cast<ChannelModeStatus *>(cm);
|
||||
cms = dynamic_cast<ChannelModeStatus *>(cm);
|
||||
|
||||
if (Value == cms->Symbol)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user