summaryrefslogtreecommitdiff
path: root/modules/commands/ns_group.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2012-05-05 09:35:18 +0200
committerDukePyrolator <DukePyrolator@anope.org>2012-05-05 09:35:18 +0200
commitc797987615b4188581d6eafff434b99da411edc0 (patch)
tree8c71415dd95c70147dcc4377983beacdfc581837 /modules/commands/ns_group.cpp
parenteb0e07d5645c06eb034cfcfbf91883158ba9dc00 (diff)
Readding missing valid nick check to ns register/group removed in os_forbid commit
Diffstat (limited to 'modules/commands/ns_group.cpp')
-rw-r--r--modules/commands/ns_group.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/commands/ns_group.cpp b/modules/commands/ns_group.cpp
index dad004eee..e35d760e1 100644
--- a/modules/commands/ns_group.cpp
+++ b/modules/commands/ns_group.cpp
@@ -36,6 +36,12 @@ class CommandNSGroup : public Command
return;
}
+ if (!ircdproto->IsNickValid(u->nick))
+ {
+ source.Reply(NICK_CANNOT_BE_REGISTERED, u->nick.c_str());
+ return;
+ }
+
if (Config->RestrictOperNicks)
for (unsigned i = 0; i < Config->Opers.size(); ++i)
{