From 2aa149d631b11208f2cfea7b9475edf76044e1ca Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 6 Apr 2004 11:12:27 +0000 Subject: The SA* modules actually compile in this version git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@402 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_sanick.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/modules/m_sanick.cpp') diff --git a/src/modules/m_sanick.cpp b/src/modules/m_sanick.cpp index d929efd4a..a95caa028 100644 --- a/src/modules/m_sanick.cpp +++ b/src/modules/m_sanick.cpp @@ -6,7 +6,7 @@ #include "channels.h" #include "modules.h" -/* $ModDesc: Provides support for unreal-style GLOBOPS and umode +g */ +/* $ModDesc: Provides support for SANICK command */ Server *Srv; @@ -15,8 +15,11 @@ void handle_sanick(char **parameters, int pcnt, userrec *user) userrec* source = Srv->FindNick(std::string(parameters[0])); if (source) { - Srv->SendOpers(std::string(user->nick)+" used SANICK to change "+std::String(dest->nick)+" to "+parameters[1]); - Srv->ChangeUserNick(source,std::String(parameters[1])); + if (Srv->IsNick(std::string(parameters[1]))) + { + Srv->SendOpers(std::string(user->nick)+" used SANICK to change "+std::string(source->nick)+" to "+parameters[1]); + Srv->ChangeUserNick(source,std::string(parameters[1])); + } } } -- cgit v1.2.3