2007-07-16 17:30:04 +00:00
|
|
|
/* +------------------------------------+
|
|
|
|
* | Inspire Internet Relay Chat Daemon |
|
|
|
|
* +------------------------------------+
|
|
|
|
*
|
2008-01-10 13:27:07 +00:00
|
|
|
* InspIRCd: (C) 2002-2008 InspIRCd Development Team
|
2007-07-16 17:30:04 +00:00
|
|
|
* See: http://www.inspircd.org/wiki/index.php/Credits
|
|
|
|
*
|
|
|
|
* This program is free but copyrighted software; see
|
|
|
|
* the file COPYING for details.
|
|
|
|
*
|
|
|
|
* ---------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "mode.h"
|
|
|
|
#include "channels.h"
|
|
|
|
|
|
|
|
class InspIRCd;
|
|
|
|
|
|
|
|
/** Channel mode +v
|
|
|
|
*/
|
|
|
|
class ModeChannelVoice : public ModeHandler
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
ModeChannelVoice(InspIRCd* Instance);
|
2007-10-15 20:59:05 +00:00
|
|
|
ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string ¶meter, bool adding);
|
|
|
|
std::string AddVoice(User *user,const char *dest,Channel *chan,int status);
|
|
|
|
std::string DelVoice(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();
|
2007-10-15 20:59:05 +00:00
|
|
|
void RemoveMode(User* user);
|
|
|
|
void RemoveMode(Channel* channel);
|
2007-07-16 17:30:04 +00:00
|
|
|
};
|
|
|
|
|