]> git.netwichtig.de Git - user/henk/code/inspircd.git/blob - include/modes/cmode_o.h
0c48eff1ec15ac996724f2bce250072b7d8efd6a
[user/henk/code/inspircd.git] / include / modes / cmode_o.h
1 /*       +------------------------------------+
2  *       | Inspire Internet Relay Chat Daemon |
3  *       +------------------------------------+
4  *
5  *  InspIRCd: (C) 2002-2008 InspIRCd Development Team
6  * See: http://www.inspircd.org/wiki/index.php/Credits
7  *
8  * This program is free but copyrighted software; see
9  *            the file COPYING for details.
10  *
11  * ---------------------------------------------------
12  */
13
14 #include "mode.h"
15 #include "channels.h"
16
17 class InspIRCd;
18
19 /** Channel mode +o
20  */
21 class ModeChannelOp : public ModeHandler
22 {
23  private:
24  public:
25         ModeChannelOp(InspIRCd* Instance);
26         ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding, bool servermode);
27         std::string AddOp(User *user,const char *dest,Channel *chan,int status);
28         std::string DelOp(User *user,const char *dest,Channel *chan,int status);
29         ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string &parameter);
30         unsigned int GetPrefixRank();
31         void RemoveMode(Channel* channel, irc::modestacker* stack = NULL);
32         void RemoveMode(User* user, irc::modestacker* stack = NULL);
33 };
34