diff options
author | Adam <Adam@anope.org> | 2010-12-26 00:31:11 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-12-26 00:31:11 -0500 |
commit | 8af2465a61b09e020c1324acfb78bbf912869fc8 (patch) | |
tree | 4aca93f8599469c9e21ba44976f0f445f568a356 | |
parent | 1b3f2567bc34da051025ba91184b3370f7956c63 (diff) |
Bug #1219 - Correctly restrict people from registering potentential guest names
-rw-r--r-- | modules/core/ns_register.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/core/ns_register.cpp b/modules/core/ns_register.cpp index edf8181e5..31f99540a 100644 --- a/modules/core/ns_register.cpp +++ b/modules/core/ns_register.cpp @@ -213,7 +213,7 @@ class CommandNSRegister : public CommandNSConfirm /* Guest nick can now have a series of between 1 and 7 digits. * --lara */ - if (nicklen <= prefixlen + 7 && nicklen >= prefixlen + 1 && !u->nick.find_ci(Config->NSGuestNickPrefix) && !u->nick.substr(prefixlen).find_first_not_of("1234567890")) + if (nicklen <= prefixlen + 7 && nicklen >= prefixlen + 1 && !u->nick.find_ci(Config->NSGuestNickPrefix) && u->nick.substr(prefixlen).find_first_not_of("1234567890") == Anope::string::npos) { source.Reply(NICK_CANNOT_BE_REGISTERED, u->nick.c_str()); return MOD_CONT; |