* | Inspire Internet Relay Chat Daemon |
* +------------------------------------+
*
- * Inspire is copyright (C) 2002-2004 ChatSpike-Dev.
- * E-mail:
- * <brain@chatspike.net>
- * <Craig@chatspike.net>
+ * InspIRCd is copyright (C) 2002-2006 ChatSpike-Dev.
+ * E-mail:
+ * <brain@chatspike.net>
+ * <Craig@chatspike.net>
*
* Written by Craig Edwards, Craig McLure, and others.
* This program is free but copyrighted software; see
- * the file COPYING for details.
+ * the file COPYING for details.
*
* ---------------------------------------------------
*/
/* $ModDesc: Provides support for SANICK command */
-Server *Srv;
+static Server *Srv;
class cmd_sanick : public command_t
{
this->source = "m_sanick.so";
}
- void Handle (char **parameters, int pcnt, userrec *user)
+ void Handle (const char** parameters, int pcnt, userrec *user)
{
userrec* source = Srv->FindNick(std::string(parameters[0]));
if (source)
{
+ if (Srv->IsUlined(source->server))
+ {
+ WriteServ(user->fd,"990 %s :Cannot use an SA command on a u-lined client",user->nick);
+ return;
+ }
if (Srv->IsNick(std::string(parameters[1])))
{
// FIX by brain: Cant use source->nick here because if it traverses a server link then