From 8b90b1f1d7c1c63bd50a2a7812d251797d9e3ef8 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 6 Oct 2016 14:14:33 -0400 Subject: #1675: fix saset display to update the account name on the correct clients --- modules/nickserv/set.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'modules') 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()); } -- cgit