X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fcommands%2Fcmd_names.cpp;h=fd4a9cef51950a4a8d6c4c4fb0a9be8fd05c50c0;hb=69cb65b695ca9f29e35f95551d4146265934e003;hp=f34afb361dfd5da334b451dc456da993022e75cd;hpb=44f42a13de52c8025942ddab42f51feb36821782;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/commands/cmd_names.cpp b/src/commands/cmd_names.cpp index f34afb361..fd4a9cef5 100644 --- a/src/commands/cmd_names.cpp +++ b/src/commands/cmd_names.cpp @@ -20,14 +20,6 @@ #include "inspircd.h" -#ifndef CMD_NAMES_H -#define CMD_NAMES_H - -// include the common header files - -#include "users.h" -#include "channels.h" - /** Handle /NAMES. These command handlers can be reloaded by the core, * and handle basic RFC1459 commands. Commands within modules work * the same way, however, they can be fully unloaded, where these @@ -48,9 +40,6 @@ class CommandNames : public Command CmdResult Handle(const std::vector& parameters, User *user); }; -#endif - - /** Handle /NAMES */ CmdResult CommandNames::Handle (const std::vector& parameters, User *user) @@ -69,11 +58,6 @@ CmdResult CommandNames::Handle (const std::vector& parameters, User c = ServerInstance->FindChan(parameters[0]); if (c) { - if ((c->IsModeSet('s')) && (!c->HasUser(user))) - { - user->WriteNumeric(401, "%s %s :No such nick/channel",user->nick.c_str(), c->name.c_str()); - return CMD_FAILURE; - } c->UserList(user); } else