summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 77a24b568..36dd5963e 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -3260,6 +3260,12 @@ bool IsDenied(userrec *user)
void handle_pass(char **parameters, int pcnt, userrec *user)
{
+ // Check to make sure they havnt registered -- Fix by FCS
+ if (user->registered == 7)
+ {
+ WriteServ(user->fd,"462 %s :You may not reregister",user->nick);
+ return;
+ }
if (!strcasecmp(parameters[0],Passwd(user)))
{
user->haspassed = true;