1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 21:13:13 +02:00

Fix being able to group guest nicknames.

This does not affect 2.1 because grouped nicknames work differently
on that branch.

Reported by @ValwareIRC.
This commit is contained in:
Sadie Powell
2025-05-08 14:46:47 +01:00
parent 151f9c2bcc
commit d23bfb0113
+1 -1
View File
@@ -162,7 +162,7 @@ class CommandNSGroup : public Command
source.Reply(_("There are too many nicks in your group."));
else if (source.GetNick().length() <= guestnick.length() + 7 &&
source.GetNick().length() >= guestnick.length() + 1 &&
!source.GetNick().find_ci(guestnick) && !source.GetNick().substr(guestnick.length()).find_first_not_of("1234567890"))
!source.GetNick().find_ci(guestnick) && source.GetNick().substr(guestnick.length()).find_first_not_of("1234567890") == Anope::string::npos)
{
source.Reply(NICK_CANNOT_BE_REGISTERED, source.GetNick().c_str());
}