summaryrefslogtreecommitdiff
path: root/modules/commands/ns_recover.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-10-14 12:20:07 -0400
committerAdam <Adam@anope.org>2011-10-14 12:20:07 -0400
commitddc3c2f38cf6ddc0c1f8ad82489a281e01ef50fc (patch)
tree832b02a62d2da9078b7ab5f9d4d5d99e15570294 /modules/commands/ns_recover.cpp
parent53275c362c521807b70e1eb7cf936f35593dd4dc (diff)
Added options:nonicknameownership config option
Diffstat (limited to 'modules/commands/ns_recover.cpp')
-rw-r--r--modules/commands/ns_recover.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/commands/ns_recover.cpp b/modules/commands/ns_recover.cpp
index f1a22129d..a6761db51 100644
--- a/modules/commands/ns_recover.cpp
+++ b/modules/commands/ns_recover.cpp
@@ -23,9 +23,8 @@ class CommandNSRecover : public Command
if (u->Account() == na->nc)
{
- ircdproto->SendAccountLogout(u, u->Account());
- u->RemoveMode(source.owner, UMODE_REGISTERED);
- ircdproto->SendUnregisteredNick(u);
+ ircdproto->SendLogout(u);
+ u->RemoveMode(findbot(Config->NickServ), UMODE_REGISTERED);
}
u->Collide(na);
@@ -133,6 +132,8 @@ class NSRecover : public Module
{
this->SetAuthor("Anope");
+ if (Config->NoNicknameOwnership)
+ throw ModuleException(modname + " can not be used with options:nonicknameownership enabled");
}
};