diff options
author | Adam <Adam@anope.org> | 2011-10-14 12:20:07 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-10-14 12:20:07 -0400 |
commit | ddc3c2f38cf6ddc0c1f8ad82489a281e01ef50fc (patch) | |
tree | 832b02a62d2da9078b7ab5f9d4d5d99e15570294 /modules/commands/ns_logout.cpp | |
parent | 53275c362c521807b70e1eb7cf936f35593dd4dc (diff) |
Added options:nonicknameownership config option
Diffstat (limited to 'modules/commands/ns_logout.cpp')
-rw-r--r-- | modules/commands/ns_logout.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/modules/commands/ns_logout.cpp b/modules/commands/ns_logout.cpp index 63798cdcb..fb958fd90 100644 --- a/modules/commands/ns_logout.cpp +++ b/modules/commands/ns_logout.cpp @@ -51,10 +51,8 @@ class CommandNSLogout : public Command else source.Reply(_("Your nick has been logged out.")); - ircdproto->SendAccountLogout(u2, u2->Account()); - u2->RemoveMode(source.owner, UMODE_REGISTERED); - ircdproto->SendUnregisteredNick(u2); - + ircdproto->SendLogout(u2); + u2->RemoveMode(findbot(Config->NickServ), UMODE_REGISTERED); u2->Logout(); /* Send out an event */ |