diff options
Diffstat (limited to 'modules/commands/ns_recover.cpp')
-rw-r--r-- | modules/commands/ns_recover.cpp | 7 |
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"); } }; |