diff options
| author | 2008-05-23 05:15:49 +0000 | |
|---|---|---|
| committer | 2008-05-23 05:15:49 +0000 | |
| commit | df2c1f5f76e572bca012e79e5f73b38452cd3020 (patch) | |
| tree | 693da4550e319ffcd83bb86d78a88ab2ac769dc5 /src/users.cpp | |
| parent | Collision tweaks (diff) | |
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
Diffstat (limited to 'src/users.cpp')
| -rw-r--r-- | src/users.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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)) |
