summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-10-01 04:35:36 -0400
committerAdam <Adam@anope.org>2012-10-01 04:35:36 -0400
commitf14a3dfb8a4cc9da7b5066ac8320265d54dba177 (patch)
treee024da12840263dc3295fea16c786000d33b66ef /src/users.cpp
parentb19a3af4db6fefdf3d94963163eb00e7133c8046 (diff)
Fix a few problems found by Cronusa and KindOne
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp
index a992d8d04..a68c03739 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -178,7 +178,7 @@ const Anope::string &User::GetCloakedHost() const
const Anope::string &User::GetUID() const
{
- if (!this->uid.empty())
+ if (!this->uid.empty() && ircdproto->RequiresID)
return this->uid;
else
return this->nick;