1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 16:33:14 +02:00

Fix duplicate messages when synconset/syncongroup is set.

Closes #366.
This commit is contained in:
Sadie Powell
2024-03-12 13:26:25 +00:00
parent 1a6060ac5b
commit 1986aa6581
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ class CommandHSGroup : public Command
for (unsigned i = 0; i < na->nc->aliases->size(); ++i)
{
NickAlias *nick = na->nc->aliases->at(i);
if (nick)
if (nick && nick != na)
{
nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator());
FOREACH_MOD(OnSetVhost, (nick));
+1 -1
View File
@@ -114,7 +114,7 @@ class CommandHSSetAll : public Command
for (unsigned i = 0; i < na->nc->aliases->size(); ++i)
{
NickAlias *nick = na->nc->aliases->at(i);
if (nick)
if (nick && nick != na)
nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator());
}
}