From efec4e0e08085a96b7c2875558f90033e7b14d44 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 21 Oct 2007 12:29:48 +0000 Subject: Change a !string.length to string.empty. these are more readable and on some implementations faster git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8243 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/users.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/users.cpp b/src/users.cpp index 3b9f5a16a..78af0ba8d 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -515,7 +515,7 @@ std::string User::GetBuffer() { try { - if (!recvq.length()) + if (recvq.empty()) return ""; /* Strip any leading \r or \n off the string. -- cgit v1.2.3