2 * InspIRCd -- Internet Relay Chat Daemon
4 * Copyright (C) 2014 Attila Molnar <attilamolnar@hush.com>
6 * This file is part of InspIRCd. InspIRCd is free software: you can
7 * redistribute it and/or modify it under the terms of the GNU General Public
8 * License as published by the Free Software Foundation, version 2.
10 * This program is distributed in the hope that it will be useful, but WITHOUT
11 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
26 class CommandInvite : public Command
29 /** Constructor for invite.
31 CommandInvite (Module* parent);
34 * @param parameters The parameters to the command
35 * @param user The user issuing the command
36 * @return A value from CmdResult to indicate command success or failure.
38 CmdResult Handle(const std::vector<std::string>& parameters, User*user);
39 RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
44 class CommandJoin : public SplitCommand
47 /** Constructor for join.
49 CommandJoin(Module* parent);
52 * @param parameters The parameters to the command
53 * @param user The user issuing the command
54 * @return A value from CmdResult to indicate command success or failure.
56 CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user);
61 class CommandTopic : public SplitCommand
63 ChanModeReference secretmode;
64 ChanModeReference topiclockmode;
67 /** Constructor for topic.
69 CommandTopic(Module* parent);
72 * @param parameters The parameters to the command
73 * @param user The user issuing the command
74 * @return A value from CmdResult to indicate command success or failure.
76 CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user);
81 class CommandNames : public Command
83 ChanModeReference secretmode;
86 /** Constructor for names.
88 CommandNames(Module* parent);
91 * @param parameters The parameters to the command
92 * @param user The user issuing the command
93 * @return A value from CmdResult to indicate command success or failure.
95 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
100 class CommandKick : public Command
103 /** Constructor for kick.
105 CommandKick(Module* parent);
108 * @param parameters The parameters to the command
109 * @param user The user issuing the command
110 * @return A value from CmdResult to indicate command success or failure.
112 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
113 RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);