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 void ShowTopic(LocalUser* user, Channel* chan);
31 class CommandInvite : public Command
34 /** Constructor for invite.
36 CommandInvite (Module* parent);
39 * @param parameters The parameters to the command
40 * @param user The user issuing the command
41 * @return A value from CmdResult to indicate command success or failure.
43 CmdResult Handle(const std::vector<std::string>& parameters, User*user);
44 RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
49 class CommandJoin : public SplitCommand
52 /** Constructor for join.
54 CommandJoin(Module* parent);
57 * @param parameters The parameters to the command
58 * @param user The user issuing the command
59 * @return A value from CmdResult to indicate command success or failure.
61 CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user);
66 class CommandTopic : public SplitCommand
68 ChanModeReference secretmode;
69 ChanModeReference topiclockmode;
72 /** Constructor for topic.
74 CommandTopic(Module* parent);
77 * @param parameters The parameters to the command
78 * @param user The user issuing the command
79 * @return A value from CmdResult to indicate command success or failure.
81 CmdResult HandleLocal(const std::vector<std::string>& parameters, LocalUser* user);
86 class CommandNames : public Command
88 ChanModeReference secretmode;
89 ChanModeReference privatemode;
90 UserModeReference invisiblemode;
93 /** Constructor for names.
95 CommandNames(Module* parent);
98 * @param parameters The parameters to the command
99 * @param user The user issuing the command
100 * @return A value from CmdResult to indicate command success or failure.
102 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
104 /** Spool the NAMES list for a given channel to the given user
105 * @param user User to spool the NAMES list to
106 * @param chan Channel whose nicklist to send
107 * @param show_invisible True to show invisible (+i) members to the user, false to omit them from the list
109 void SendNames(User* user, Channel* chan, bool show_invisible);
114 class CommandKick : public Command
117 /** Constructor for kick.
119 CommandKick(Module* parent);
122 * @param parameters The parameters to the command
123 * @param user The user issuing the command
124 * @return A value from CmdResult to indicate command success or failure.
126 CmdResult Handle(const std::vector<std::string>& parameters, User *user);
127 RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);