From 9136136ac373a922cd0875f77d3212a419fb9100 Mon Sep 17 00:00:00 2001 From: Attila Molnar Date: Sun, 5 Jan 2014 15:20:17 +0100 Subject: Move server description field from TreeServer into Server; remove OnGetServerDescription hook --- src/commands/cmd_whois.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_whois.cpp b/src/commands/cmd_whois.cpp index fdc2ad045..7e67676ed 100644 --- a/src/commands/cmd_whois.cpp +++ b/src/commands/cmd_whois.cpp @@ -144,8 +144,7 @@ void CommandWhois::DoWhois(User* user, User* dest, unsigned long signon, unsigne } else { - std::string serverdesc = ServerInstance->GetServerDescription(dest->server->GetName()); - ServerInstance->SendWhoisLine(user, dest, 312, "%s %s :%s", dest->nick.c_str(), dest->server->GetName().c_str(), serverdesc.c_str()); + ServerInstance->SendWhoisLine(user, dest, 312, "%s %s :%s", dest->nick.c_str(), dest->server->GetName().c_str(), dest->server->GetDesc().c_str()); } if (dest->IsAway()) -- cgit v1.2.3