summaryrefslogtreecommitdiff
path: root/src/modes.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-28 20:25:01 -0400
committerAdam <Adam@anope.org>2016-09-28 20:25:01 -0400
commit93b9884715e5ce84f41c2764ebb7e37f26319792 (patch)
tree98da459dcd8bcd4b94cfd18e32af73e2ec47cfcf /src/modes.cpp
parent87245f2c22f0e39578be561f7220e224a3466559 (diff)
Include gecos in GetNUHMask
Diffstat (limited to 'src/modes.cpp')
-rw-r--r--src/modes.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modes.cpp b/src/modes.cpp
index dd1c9539f..065558747 100644
--- a/src/modes.cpp
+++ b/src/modes.cpp
@@ -863,8 +863,9 @@ const Anope::string Entry::GetNUHMask() const
{
Anope::string n = nick.empty() ? "*" : nick,
u = user.empty() ? "*" : user,
- h = host.empty() ? "*" : host;
- return n + "!" + u + "@" + h;
+ h = host.empty() ? "*" : host,
+ r = real.empty() ? "" : "#" + real;
+ return n + "!" + u + "@" + h + r;
}
bool Entry::Matches(User *u, bool full) const