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 CommandEline : public Command
29 /** Constructor for eline.
31 CommandEline(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);
43 class CommandGline : public Command
46 /** Constructor for gline.
48 CommandGline(Module* parent);
51 * @param parameters The parameters to the command
52 * @param user The user issuing the command
53 * @return A value from CmdResult to indicate command success or failure.
55 CmdResult Handle(const std::vector<std::string>& parameters, User* user);
60 class CommandKline : public Command
63 /** Constructor for kline.
65 CommandKline(Module* parent);
68 * @param parameters The parameters to the command
69 * @param user The user issuing the command
70 * @return A value from CmdResult to indicate command success or failure.
72 CmdResult Handle(const std::vector<std::string>& parameters, User* user);
77 class CommandQline : public Command
80 /** Constructor for qline.
82 CommandQline(Module* parent);
85 * @param parameters The parameters to the command
86 * @param pcnt The number of parameters passed to the command
87 * @param user The user issuing the command
88 * @return A value from CmdResult to indicate command success or failure.
90 CmdResult Handle(const std::vector<std::string>& parameters, User* user);
95 class CommandZline : public Command
98 /** Constructor for zline.
100 CommandZline(Module* parent);
103 * @param parameters The parameters to the command
104 * @param user The user issuing the command
105 * @return A value from CmdResult to indicate command success or failure.
107 CmdResult Handle(const std::vector<std::string>& parameters, User* user);