diff options
author | Sadie Powell <sadie@witchery.services> | 2024-03-12 13:26:25 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-03-12 13:26:25 +0000 |
commit | 1986aa65815f061106f43a5c1e9a22bc199a2d56 (patch) | |
tree | bc9df40cb285e630eef58de1718a005bbbb1713e /modules | |
parent | 1a6060ac5bcd9346a39928bafb42a58fd023a6c8 (diff) |
Fix duplicate messages when synconset/syncongroup is set.
Closes #366.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/commands/hs_group.cpp | 2 | ||||
-rw-r--r-- | modules/commands/hs_set.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/commands/hs_group.cpp b/modules/commands/hs_group.cpp index f08c56685..b22450227 100644 --- a/modules/commands/hs_group.cpp +++ b/modules/commands/hs_group.cpp @@ -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)); diff --git a/modules/commands/hs_set.cpp b/modules/commands/hs_set.cpp index 1a34266d7..b561c1e62 100644 --- a/modules/commands/hs_set.cpp +++ b/modules/commands/hs_set.cpp @@ -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()); } } |