diff options
Diffstat (limited to 'modules/hostserv')
| -rw-r--r-- | modules/hostserv/hs_group.cpp | 2 | ||||
| -rw-r--r-- | modules/hostserv/hs_set.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/modules/hostserv/hs_group.cpp b/modules/hostserv/hs_group.cpp index 2877fa16d..d28f00f7c 100644 --- a/modules/hostserv/hs_group.cpp +++ b/modules/hostserv/hs_group.cpp @@ -28,7 +28,7 @@ public: setting = true; for (auto *nick : *na->nc->aliases) { - if (nick) + if (nick && nick != na) { nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator()); FOREACH_MOD(OnSetVhost, (nick)); diff --git a/modules/hostserv/hs_set.cpp b/modules/hostserv/hs_set.cpp index 16e4cebf9..55f562e00 100644 --- a/modules/hostserv/hs_set.cpp +++ b/modules/hostserv/hs_set.cpp @@ -112,7 +112,7 @@ class CommandHSSetAll final for (auto *nick : *na->nc->aliases) { - if (nick) + if (nick && nick != na) nick->SetVhost(na->GetVhostIdent(), na->GetVhostHost(), na->GetVhostCreator()); } } |
