summaryrefslogtreecommitdiff
path: root/src/whois.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/whois.cpp')
-rw-r--r--src/whois.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/whois.cpp b/src/whois.cpp
index 7ef79aa3f..bec9c7ea9 100644
--- a/src/whois.cpp
+++ b/src/whois.cpp
@@ -50,7 +50,8 @@ void InspIRCd::DoWhois(User* user, User* dest,unsigned long signon, unsigned lon
}
else
{
- this->SendWhoisLine(user, dest, 312, "%s %s %s :%s",user->nick.c_str(), dest->nick.c_str(), dest->server.c_str(), this->GetServerDescription(dest->server).c_str());
+ std::string serverdesc = GetServerDescription(dest->server);
+ this->SendWhoisLine(user, dest, 312, "%s %s %s :%s",user->nick.c_str(), dest->nick.c_str(), dest->server.c_str(), serverdesc.c_str());
}
if (IS_AWAY(dest))