2006-12-15 22:03:27 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
|
|
|
* InspIRCd: (C) 2002-2007 InspIRCd Development Team
|
|
|
|
* See: http://www.inspircd.org/wiki/index.php/Credits
|
|
|
|
*
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
2006-07-08 15:05:33 +00:00
|
|
|
#include "mode.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
2006-08-10 22:40:57 +00:00
|
|
|
class InspIRCd;
|
|
|
|
|
2006-08-12 01:22:26 +00:00
|
|
|
/** Channel mode +o
|
|
|
|
*/
|
2006-07-08 15:05:33 +00:00
|
|
|
class ModeChannelOp : public ModeHandler
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
public:
|
2006-08-10 22:40:57 +00:00
|
|
|
ModeChannelOp(InspIRCd* Instance);
|
2006-07-08 15:05:33 +00:00
|
|
|
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
|
|
|
|
std::string AddOp(userrec *user,const char *dest,chanrec *chan,int status);
|
|
|
|
std::string DelOp(userrec *user,const char *dest,chanrec *chan,int status);
|
2006-07-27 19:40:47 +00:00
|
|
|
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
|
2006-08-23 20:20:41 +00:00
|
|
|
unsigned int GetPrefixRank();
|
2006-09-02 17:40:33 +00:00
|
|
|
void RemoveMode(chanrec* channel);
|
|
|
|
void RemoveMode(userrec* user);
|
2006-07-08 15:05:33 +00:00
|
|
|
};
|
|
|
|
|