]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - src/modules/m_spanningtree/commands.h
Change more modules to VF_OPTCOMMON and assert identical charsets in m_nationalchars
[user/henk/code/inspircd.git] / src / modules / m_spanningtree / commands.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2010 InspIRCd Development Team
6  * See: http://wiki.inspircd.org/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #ifndef __COMMANDS_H__
15 #define __COMMANDS_H__
16
17 /** Handle /RCONNECT
18  */
19 class CommandRConnect : public Command
20 {
21         SpanningTreeUtilities* Utils;   /* Utility class */
22  public:
23         CommandRConnect (Module* Callback, SpanningTreeUtilities* Util);
24         CmdResult Handle (const std::vector<std::string>& parameters, User *user);
25                 RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
26 };
27
28 class CommandRSQuit : public Command
29 {
30         SpanningTreeUtilities* Utils;   /* Utility class */
31  public:
32         CommandRSQuit(Module* Callback, SpanningTreeUtilities* Util);
33         CmdResult Handle (const std::vector<std::string>& parameters, User *user);
34                 RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
35         void NoticeUser(User* user, const std::string &msg);
36 };
37
38 class CommandSVSJoin : public Command
39 {
40  public:
41         CommandSVSJoin(Module* Creator) : Command(Creator, "SVSJOIN", 2) { flags_needed = 'o'; }
42         CmdResult Handle (const std::vector<std::string>& parameters, User *user);
43         RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
44 };
45 class CommandSVSPart : public Command
46 {
47  public:
48         CommandSVSPart(Module* Creator) : Command(Creator, "SVSPART", 2) { flags_needed = 'o'; }
49         CmdResult Handle (const std::vector<std::string>& parameters, User *user);
50         RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
51 };
52 class CommandSVSNick : public Command
53 {
54  public:
55         CommandSVSNick(Module* Creator) : Command(Creator, "SVSNICK", 2) { flags_needed = 'o'; }
56         CmdResult Handle (const std::vector<std::string>& parameters, User *user);
57         RouteDescriptor GetRouting(User* user, const std::vector<std::string>& parameters);
58 };
59
60 #endif