summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorNaram Qashat <cyberbotx@cyberbotx.com>2010-07-29 08:12:54 -0400
committerNaram Qashat <cyberbotx@cyberbotx.com>2010-07-29 08:12:54 -0400
commit04200cc8382519c8ea18d214002bc0f063be7d3c (patch)
tree19537e1d5a53f3f0a5b8e965bec21ae2aa405974 /src/users.cpp
parent06cb137fdea7ef68d020482ffac326c4d988945f (diff)
Made all of IRCDProto use const pointers, with the exception of SendVhostDel because of the Unreal protocol module, it makes me sad.
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 6d1b1fb7f..dd21a1ef9 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -826,6 +826,7 @@ User *do_nick(const Anope::string &source, const Anope::string &nick, const Anop
/* If the new nick isnt registerd or its registerd and not yours */
if (!na || na->nc != user->Account())
{
+ user->RemoveMode(NickServ, UMODE_REGISTERED);
ircdproto->SendUnregisteredNick(user);
validate_user(user);