From df2c1f5f76e572bca012e79e5f73b38452cd3020 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 23 May 2008 05:15:49 +0000 Subject: Why are we using .compare() when we can use == ? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9791 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 5ec141718..c4c9fe9d1 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1528,7 +1528,7 @@ bool User::ChangeName(const char* gecos) bool User::ChangeDisplayedHost(const char* shost) { - if (!this->dhost.compare(shost)) + if (dhost == shost) return true; if (IS_LOCAL(this)) -- cgit v1.2.3