diff options
author | Adam <Adam@anope.org> | 2016-12-22 20:52:43 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-12-22 20:52:43 -0500 |
commit | ec7ce09ef45c491ea833ca39ee2dc0ff3cdf5f90 (patch) | |
tree | d1a2a9e8f554a190ebb063719d7942c90d96c3bb /src | |
parent | 574c8dfbc798df444899b4907efc50a40ec6e4a4 (diff) |
Make User::Mask behave more like 1.8
Diffstat (limited to 'src')
-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 25e558c5f..059b89377 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -781,7 +781,7 @@ Anope::string User::Mask() const sockaddrs addr(mhost); if (addr.valid() && addr.sa.sa_family == AF_INET) { - size_t dot = mhost.find('.'); + size_t dot = mhost.rfind('.'); mask += mhost.substr(0, dot) + (dot == Anope::string::npos ? "" : ".*"); } else |