1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 22:26:39 +02:00

Bug #1354 - Allow mode chars to be used for channel prefixs in services.conf

This commit is contained in:
Adam
2011-11-03 02:28:29 -04:00
parent 302989bed1
commit ca33ac608d
9 changed files with 20 additions and 2 deletions
+3 -1
View File
@@ -972,7 +972,9 @@ static bool DoServices(ServerConfig *config, const Anope::string &, const Anope:
/* Set the new modes */
for (unsigned j = 0; j < want_modes.length(); ++j)
{
ChannelMode *cm = ModeManager::FindChannelModeByChar(ModeManager::GetStatusChar(want_modes[j]));
ChannelMode *cm = ModeManager::FindChannelModeByChar(want_modes[j]);
if (cm == NULL)
cm = ModeManager::FindChannelModeByChar(ModeManager::GetStatusChar(want_modes[j]));
if (cm && cm->Type == MODE_STATUS)
c->SetMode(bi, cm, bi->nick);
}