summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-23 08:41:22 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-12-23 08:41:22 +0000
commit80cbac3769b03d6e88c509ef6cfbe4e1983ca748 (patch)
tree0c2607fa08e3b04cb6a8db4f04109a241ebb7785 /src/modes.cpp
parentf82640af7cc534f284914e12233098c4882a484d (diff)
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
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index 90a3a648c..9fed6da55 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -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)
{