mirror of
https://github.com/anope/anope.git
synced 2026-07-01 06:16:38 +02:00
Fixed a lot of small problems
This commit is contained in:
+1
-7
@@ -27,12 +27,8 @@ void InitLogChannels(ServerConfig *config)
|
||||
if (target[0] == '#')
|
||||
{
|
||||
Channel *c = findchan(target);
|
||||
bool created = false;
|
||||
if (!c)
|
||||
{
|
||||
c = new Channel(target);
|
||||
created = true;
|
||||
}
|
||||
c->SetFlag(CH_LOGCHAN);
|
||||
c->SetFlag(CH_PERSIST);
|
||||
|
||||
@@ -41,9 +37,7 @@ void InitLogChannels(ServerConfig *config)
|
||||
BotInfo *bi = *it;
|
||||
|
||||
if (bi->HasFlag(BI_CORE) && !c->FindUser(bi))
|
||||
{
|
||||
bi->Join(c, created);
|
||||
}
|
||||
bi->Join(c, &config->BotModeList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user