summaryrefslogtreecommitdiff
path: root/src/chanserv.c
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/chanserv.c
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/chanserv.c')
-rw-r--r--src/chanserv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index 941925b1b..dc5345ed6 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -193,7 +193,7 @@ char *get_mlock_modes(ChannelInfo * ci, int complete)
if (cm->Type == MODE_PARAM)
{
- cmp = static_cast<ChannelModeParam *>(cm);
+ cmp = dynamic_cast<ChannelModeParam *>(cm);
ci->GetParam(cmp->Name, &param);
@@ -395,7 +395,7 @@ void check_modes(Channel *c)
/* Add the eventual parameter */
if (cm->Type == MODE_PARAM)
{
- cmp = static_cast<ChannelModeParam *>(cm);
+ cmp = dynamic_cast<ChannelModeParam *>(cm);
if (!cmp->MinusNoArg)
{