diff options
Diffstat (limited to 'src/chanserv.c')
-rw-r--r-- | src/chanserv.c | 4 |
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, ¶m); @@ -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) { |