mirror of
https://github.com/anope/anope.git
synced 2026-07-05 13:23:12 +02:00
Store modes as their object form in ModeStatus.
This has the side effect of preventing users from putting nonsense
modes in {botserv}:botmodes and other related fields.
This commit is contained in:
+1
-1
@@ -386,7 +386,7 @@ Conf::Conf() : Block("")
|
||||
if (memb != NULL)
|
||||
{
|
||||
for (auto mode : memb->status.Modes())
|
||||
c->RemoveMode(bi, ModeManager::FindChannelModeByChar(mode), bi->GetUID());
|
||||
c->RemoveMode(bi, mode, bi->GetUID());
|
||||
}
|
||||
/* Set the new modes */
|
||||
for (char want_mode : want_modes)
|
||||
|
||||
Reference in New Issue
Block a user