diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-23 08:41:22 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-12-23 08:41:22 +0000 |
commit | 80cbac3769b03d6e88c509ef6cfbe4e1983ca748 (patch) | |
tree | 0c2607fa08e3b04cb6a8db4f04109a241ebb7785 /src/protocol/ratbox.c | |
parent | f82640af7cc534f284914e12233098c4882a484d (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/protocol/ratbox.c')
-rw-r--r-- | src/protocol/ratbox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/protocol/ratbox.c b/src/protocol/ratbox.c index f10a4abcd..3b9f982aa 100644 --- a/src/protocol/ratbox.c +++ b/src/protocol/ratbox.c @@ -735,15 +735,15 @@ int anope_event_bmask(const char *source, int ac, const char **av) for (i = 0; i <= count - 1; i++) { b = myStrGetToken(bans, ' ', i); if (!stricmp(av[2], "b")) { - cms = static_cast<ChannelModeList *>(ModeManager::FindChannelModeByChar('b')); + cms = dynamic_cast<ChannelModeList *>(ModeManager::FindChannelModeByChar('b')); cms->AddMask(c, b); } if (!stricmp(av[2], "e")) { - cms = static_cast<ChannelModeList *>(ModeManager::FindChannelModeByChar('e')); + cms = dynamic_cast<ChannelModeList *>(ModeManager::FindChannelModeByChar('e')); cms->AddMask(c, b); } if (!stricmp(av[2], "I")) { - cms = static_cast<ChannelModeList *>(ModeManager::FindChannelModeByChar('I')); + cms = dynamic_cast<ChannelModeList *>(ModeManager::FindChannelModeByChar('I')); cms->AddMask(c, b); } if (b) |