From 73e65d1d242c161e2aaa13d19bee28be2c04cb64 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 15 Jan 2006 23:08:56 +0000 Subject: Fixed deprecated checks here that potentially break it with spanningtree (throwbacks to mesh linking) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2811 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_nicklock.cpp | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_nicklock.cpp b/src/modules/m_nicklock.cpp index f9215f0a5..731704d68 100644 --- a/src/modules/m_nicklock.cpp +++ b/src/modules/m_nicklock.cpp @@ -51,23 +51,13 @@ class cmd_nicklock : public command_t } if (Srv->IsNick(std::string(parameters[1]))) { - server = user->server; - me = Srv->GetServerName().c_str(); - - if (server == me) - { - // give them a lock flag - Srv->SendOpers(std::string(user->nick)+" used NICKLOCK to change and hold "+std::string(parameters[0])+" to "+parameters[1]); - Srv->ChangeUserNick(source,std::string(parameters[1])); - // only attempt to set their lockflag after we know the change succeeded - source = Srv->FindNick(std::string(parameters[1])); - if (source) - source->Extend("nick_locked", "ON"); - } - else - { - WriteServ(user->fd,"947 %s %s :Can't lock the nickname of a non-local user",user->nick,source->nick); - } + // give them a lock flag + Srv->SendOpers(std::string(user->nick)+" used NICKLOCK to change and hold "+std::string(parameters[0])+" to "+parameters[1]); + Srv->ChangeUserNick(source,std::string(parameters[1])); + // only attempt to set their lockflag after we know the change succeeded + source = Srv->FindNick(std::string(parameters[1])); + if (source) + source->Extend("nick_locked", "ON"); } } } -- cgit v1.2.3