2007-07-16 17:30:04 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2009-01-02 18:16:05 +00:00
|
|
|
* InspIRCd: (C) 2002-2009 InspIRCd Development Team
|
2009-03-15 12:42:35 +00:00
|
|
|
* See: http://wiki.inspircd.org/Credits
|
2007-07-16 17:30:04 +00:00
|
|
|
*
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mode.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
|
|
|
class InspIRCd;
|
|
|
|
|
|
|
|
/** Channel mode +o
|
|
|
|
*/
|
|
|
|
class ModeChannelOp : public ModeHandler
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
ModeChannelOp(InspIRCd* Instance);
|
2008-02-18 16:55:27 +00:00
|
|
|
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding, bool servermode);
|
2007-10-15 20:59:05 +00:00
|
|
|
std::string AddOp(User *user,const char *dest,Channel *chan,int status);
|
|
|
|
std::string DelOp(User *user,const char *dest,Channel *chan,int status);
|
|
|
|
ModePair ModeSet(User* source, User* dest, Channel* channel, const std::string ¶meter);
|
2007-07-16 17:30:04 +00:00
|
|
|
unsigned int GetPrefixRank();
|
2008-04-02 23:53:29 +00:00
|
|
|
void RemoveMode(Channel* channel, irc::modestacker* stack = NULL);
|
|
|
|
void RemoveMode(User* user, irc::modestacker* stack = NULL);
|
2007-07-16 17:30:04 +00:00
|
|
|
};
|
|
|
|
|