diff options
author | Adam <Adam@anope.org> | 2016-10-06 14:14:33 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-10-06 14:14:33 -0400 |
commit | 8b90b1f1d7c1c63bd50a2a7812d251797d9e3ef8 (patch) | |
tree | bc914fcb5749ff3d9ed8aeea148f94ba3d7e5559 /modules/nickserv/set.cpp | |
parent | 21ecfd0e4bf6484c0a5d1a59b64635c8dce7c0bb (diff) |
#1675: fix saset display to update the account name on the correct clients
Diffstat (limited to 'modules/nickserv/set.cpp')
-rw-r--r-- | modules/nickserv/set.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/modules/nickserv/set.cpp b/modules/nickserv/set.cpp index 15658d234..bb6557f4b 100644 --- a/modules/nickserv/set.cpp +++ b/modules/nickserv/set.cpp @@ -356,8 +356,12 @@ class CommandNSSetDisplay : public Command Log(user_na->GetAccount() == source.GetAccount() ? LOG_COMMAND : LOG_ADMIN, source, this) << "to change the display of " << user_na->GetAccount()->GetDisplay() << " to " << na->GetNick(); user_na->GetAccount()->SetDisplay(na); - if (source.GetUser()) - IRCD->SendLogin(source.GetUser(), na); + + for (User *u : user_na->GetAccount()->users) + { + IRCD->SendLogin(u, user_na); + } + source.Reply(_("The new display is now \002{0}\002."), user_na->GetAccount()->GetDisplay()); } |