From 811d816e77b4fd41fe3f51cbdc63ab5ef5291ebf Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 19 Apr 2012 01:23:26 +0200 Subject: Avoid sending empty channel list numeric on whois if the target is not in any channels. --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index f8f9d0025..8b3065706 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1541,7 +1541,7 @@ void User::SplitChanList(User* dest, const std::string &cl) } } - if (line.length()) + if (line.length() != prefix.str().length()) { ServerInstance->SendWhoisLine(this, dest, 319, "%s", line.c_str()); } -- cgit v1.2.3