mirror of
https://github.com/anope/anope.git
synced 2026-07-01 10:06:37 +02:00
Reworked live SQL support yet again
This commit is contained in:
@@ -104,15 +104,16 @@ class CommandHSSet : public Command
|
||||
|
||||
class CommandHSSetAll : public Command
|
||||
{
|
||||
void Sync(NickAlias *na)
|
||||
void Sync(const NickAlias *na)
|
||||
{
|
||||
if (!na || !na->HasVhost())
|
||||
return;
|
||||
|
||||
for (std::list<NickAlias *>::iterator it = na->nc->aliases.begin(), it_end = na->nc->aliases.end(); it != it_end; ++it)
|
||||
for (std::list<serialize_obj<NickAlias> >::const_iterator it = na->nc->aliases.begin(), it_end = na->nc->aliases.end(); it != it_end;)
|
||||
{
|
||||
NickAlias *nick = *it;
|
||||
nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator());
|
||||
NickAlias *nick = *it++;
|
||||
if (nick)
|
||||
nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator());
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user