diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-15 23:08:56 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-01-15 23:08:56 +0000 |
commit | 73e65d1d242c161e2aaa13d19bee28be2c04cb64 (patch) | |
tree | a5a0a3104dce7391a641e1a3779629f3dce648ef /src/modules | |
parent | 4b98200ca8b20fdf96e9ab7c13bd933f70c3d516 (diff) |
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
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_nicklock.cpp | 24 |
1 files changed, 7 insertions, 17 deletions
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"); } } } |