diff options
author | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-16 17:14:45 +0000 |
---|---|---|
committer | peavey <peavey@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-07-16 17:14:45 +0000 |
commit | bab14f0dd2345c9d7dcbc47c918563709e1ac094 (patch) | |
tree | 753a23cfc9fc08c6697e80b3e686f074aa911d85 /include/modes | |
parent | 3abff3a37550cc1d88dd4d1fd7ed526e89309a53 (diff) |
'svn propset -R svn:eol-style CR *' Set to UNIX-style always. Binaries are auto skipped by svn.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7454 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modes')
-rw-r--r-- | include/modes/cmode_b.h | 36 | ||||
-rw-r--r-- | include/modes/cmode_h.h | 35 | ||||
-rw-r--r-- | include/modes/cmode_i.h | 26 | ||||
-rw-r--r-- | include/modes/cmode_k.h | 30 | ||||
-rw-r--r-- | include/modes/cmode_l.h | 28 | ||||
-rw-r--r-- | include/modes/cmode_m.h | 26 | ||||
-rw-r--r-- | include/modes/cmode_n.h | 26 | ||||
-rw-r--r-- | include/modes/cmode_o.h | 35 | ||||
-rw-r--r-- | include/modes/cmode_p.h | 26 | ||||
-rw-r--r-- | include/modes/cmode_s.h | 26 | ||||
-rw-r--r-- | include/modes/cmode_t.h | 26 | ||||
-rw-r--r-- | include/modes/cmode_v.h | 35 | ||||
-rw-r--r-- | include/modes/umode_i.h | 27 | ||||
-rw-r--r-- | include/modes/umode_n.h | 26 | ||||
-rw-r--r-- | include/modes/umode_o.h | 27 | ||||
-rw-r--r-- | include/modes/umode_s.h | 27 | ||||
-rw-r--r-- | include/modes/umode_w.h | 27 |
17 files changed, 17 insertions, 472 deletions
diff --git a/include/modes/cmode_b.h b/include/modes/cmode_b.h index 2fe3de614..b9e403258 100644 --- a/include/modes/cmode_b.h +++ b/include/modes/cmode_b.h @@ -1,35 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" -#include "channels.h" - -class InspIRCd; - -/** Channel mode +b - */ -class ModeChannelBan : public ModeHandler -{ - private: - BanItem b; - public: - ModeChannelBan(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - std::string& AddBan(userrec *user,std::string& dest,chanrec *chan,int status); - std::string& DelBan(userrec *user,std::string& dest,chanrec *chan,int status); - void DisplayList(userrec* user, chanrec* channel); - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - void RemoveMode(userrec* user); - void RemoveMode(chanrec* channel); -}; - +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
#include "channels.h"
class InspIRCd;
/** Channel mode +b
*/
class ModeChannelBan : public ModeHandler
{
private:
BanItem b;
public:
ModeChannelBan(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
std::string& AddBan(userrec *user,std::string& dest,chanrec *chan,int status);
std::string& DelBan(userrec *user,std::string& dest,chanrec *chan,int status);
void DisplayList(userrec* user, chanrec* channel);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
void RemoveMode(userrec* user);
void RemoveMode(chanrec* channel);
};
\ No newline at end of file diff --git a/include/modes/cmode_h.h b/include/modes/cmode_h.h index 77d1d57ae..9792fcb00 100644 --- a/include/modes/cmode_h.h +++ b/include/modes/cmode_h.h @@ -1,34 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" -#include "channels.h" - -class InspIRCd; - -/** Channel mode +h - */ -class ModeChannelHalfOp : public ModeHandler -{ - private: - public: - ModeChannelHalfOp(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - std::string AddHalfOp(userrec *user,const char *dest,chanrec *chan,int status); - std::string DelHalfOp(userrec *user,const char *dest,chanrec *chan,int status); - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - unsigned int GetPrefixRank(); - void RemoveMode(chanrec* channel); - void RemoveMode(userrec* user); -}; - +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
#include "channels.h"
class InspIRCd;
/** Channel mode +h
*/
class ModeChannelHalfOp : public ModeHandler
{
private:
public:
ModeChannelHalfOp(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
std::string AddHalfOp(userrec *user,const char *dest,chanrec *chan,int status);
std::string DelHalfOp(userrec *user,const char *dest,chanrec *chan,int status);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
unsigned int GetPrefixRank();
void RemoveMode(chanrec* channel);
void RemoveMode(userrec* user);
};
\ No newline at end of file diff --git a/include/modes/cmode_i.h b/include/modes/cmode_i.h index fb177dc0f..9df5314aa 100644 --- a/include/modes/cmode_i.h +++ b/include/modes/cmode_i.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +i - */ -class ModeChannelInviteOnly : public ModeHandler -{ - public: - ModeChannelInviteOnly(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +i
*/
class ModeChannelInviteOnly : public ModeHandler
{
public:
ModeChannelInviteOnly(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/cmode_k.h b/include/modes/cmode_k.h index 51e8ffcaa..695518bf9 100644 --- a/include/modes/cmode_k.h +++ b/include/modes/cmode_k.h @@ -1,29 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +k - */ -class ModeChannelKey : public ModeHandler -{ - public: - ModeChannelKey(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel); - void RemoveMode(chanrec* channel); - void RemoveMode(userrec* user); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +k
*/
class ModeChannelKey : public ModeHandler
{
public:
ModeChannelKey(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel);
void RemoveMode(chanrec* channel);
void RemoveMode(userrec* user);
};
\ No newline at end of file diff --git a/include/modes/cmode_l.h b/include/modes/cmode_l.h index 63b4a1ef1..49228479f 100644 --- a/include/modes/cmode_l.h +++ b/include/modes/cmode_l.h @@ -1,27 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +l - */ -class ModeChannelLimit : public ModeHandler -{ - public: - ModeChannelLimit(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +l
*/
class ModeChannelLimit : public ModeHandler
{
public:
ModeChannelLimit(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
bool CheckTimeStamp(time_t theirs, time_t ours, const std::string &their_param, const std::string &our_param, chanrec* channel);
};
\ No newline at end of file diff --git a/include/modes/cmode_m.h b/include/modes/cmode_m.h index 52288de4c..885b0321e 100644 --- a/include/modes/cmode_m.h +++ b/include/modes/cmode_m.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +m - */ -class ModeChannelModerated : public ModeHandler -{ - public: - ModeChannelModerated(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +m
*/
class ModeChannelModerated : public ModeHandler
{
public:
ModeChannelModerated(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/cmode_n.h b/include/modes/cmode_n.h index 953e0d671..dcc0edccb 100644 --- a/include/modes/cmode_n.h +++ b/include/modes/cmode_n.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +n - */ -class ModeChannelNoExternal : public ModeHandler -{ - public: - ModeChannelNoExternal(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +n
*/
class ModeChannelNoExternal : public ModeHandler
{
public:
ModeChannelNoExternal(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/cmode_o.h b/include/modes/cmode_o.h index c86fb4586..4198a3f20 100644 --- a/include/modes/cmode_o.h +++ b/include/modes/cmode_o.h @@ -1,34 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" -#include "channels.h" - -class InspIRCd; - -/** Channel mode +o - */ -class ModeChannelOp : public ModeHandler -{ - private: - public: - ModeChannelOp(InspIRCd* Instance); - 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); - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - unsigned int GetPrefixRank(); - void RemoveMode(chanrec* channel); - void RemoveMode(userrec* user); -}; - +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
#include "channels.h"
class InspIRCd;
/** Channel mode +o
*/
class ModeChannelOp : public ModeHandler
{
private:
public:
ModeChannelOp(InspIRCd* Instance);
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);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
unsigned int GetPrefixRank();
void RemoveMode(chanrec* channel);
void RemoveMode(userrec* user);
};
\ No newline at end of file diff --git a/include/modes/cmode_p.h b/include/modes/cmode_p.h index ad3f3ae89..123827ea7 100644 --- a/include/modes/cmode_p.h +++ b/include/modes/cmode_p.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +p - */ -class ModeChannelPrivate : public ModeHandler -{ - public: - ModeChannelPrivate(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +p
*/
class ModeChannelPrivate : public ModeHandler
{
public:
ModeChannelPrivate(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/cmode_s.h b/include/modes/cmode_s.h index 0bc229c37..383e5c083 100644 --- a/include/modes/cmode_s.h +++ b/include/modes/cmode_s.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +s - */ -class ModeChannelSecret : public ModeHandler -{ - public: - ModeChannelSecret(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +s
*/
class ModeChannelSecret : public ModeHandler
{
public:
ModeChannelSecret(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/cmode_t.h b/include/modes/cmode_t.h index 8a7517ee3..4ddd51730 100644 --- a/include/modes/cmode_t.h +++ b/include/modes/cmode_t.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** Channel mode +t - */ -class ModeChannelTopicOps : public ModeHandler -{ - public: - ModeChannelTopicOps(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** Channel mode +t
*/
class ModeChannelTopicOps : public ModeHandler
{
public:
ModeChannelTopicOps(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/cmode_v.h b/include/modes/cmode_v.h index 75420a6d5..a1d40ddc4 100644 --- a/include/modes/cmode_v.h +++ b/include/modes/cmode_v.h @@ -1,34 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" -#include "channels.h" - -class InspIRCd; - -/** Channel mode +v - */ -class ModeChannelVoice : public ModeHandler -{ - private: - public: - ModeChannelVoice(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - std::string AddVoice(userrec *user,const char *dest,chanrec *chan,int status); - std::string DelVoice(userrec *user,const char *dest,chanrec *chan,int status); - ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter); - unsigned int GetPrefixRank(); - void RemoveMode(userrec* user); - void RemoveMode(chanrec* channel); -}; - +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
#include "channels.h"
class InspIRCd;
/** Channel mode +v
*/
class ModeChannelVoice : public ModeHandler
{
private:
public:
ModeChannelVoice(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
std::string AddVoice(userrec *user,const char *dest,chanrec *chan,int status);
std::string DelVoice(userrec *user,const char *dest,chanrec *chan,int status);
ModePair ModeSet(userrec* source, userrec* dest, chanrec* channel, const std::string ¶meter);
unsigned int GetPrefixRank();
void RemoveMode(userrec* user);
void RemoveMode(chanrec* channel);
};
\ No newline at end of file diff --git a/include/modes/umode_i.h b/include/modes/umode_i.h index cc7d15102..4319ac0a5 100644 --- a/include/modes/umode_i.h +++ b/include/modes/umode_i.h @@ -1,26 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** User mode +i - */ -class ModeUserInvisible : public ModeHandler -{ - public: - ModeUserInvisible(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - unsigned int GetCount(); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** User mode +i
*/
class ModeUserInvisible : public ModeHandler
{
public:
ModeUserInvisible(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
unsigned int GetCount();
};
\ No newline at end of file diff --git a/include/modes/umode_n.h b/include/modes/umode_n.h index cd1275acc..9a944d41c 100644 --- a/include/modes/umode_n.h +++ b/include/modes/umode_n.h @@ -1,25 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** User mode +n - */ -class ModeUserServerNoticeMask : public ModeHandler -{ - public: - ModeUserServerNoticeMask(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** User mode +n
*/
class ModeUserServerNoticeMask : public ModeHandler
{
public:
ModeUserServerNoticeMask(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
};
\ No newline at end of file diff --git a/include/modes/umode_o.h b/include/modes/umode_o.h index 7dfdb4128..7548a087a 100644 --- a/include/modes/umode_o.h +++ b/include/modes/umode_o.h @@ -1,26 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** User mode +o - */ -class ModeUserOperator : public ModeHandler -{ - public: - ModeUserOperator(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - unsigned int GetCount(); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** User mode +o
*/
class ModeUserOperator : public ModeHandler
{
public:
ModeUserOperator(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
unsigned int GetCount();
};
\ No newline at end of file diff --git a/include/modes/umode_s.h b/include/modes/umode_s.h index cda223eee..98264298b 100644 --- a/include/modes/umode_s.h +++ b/include/modes/umode_s.h @@ -1,26 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** User mode +s - */ -class ModeUserServerNotice : public ModeHandler -{ - public: - ModeUserServerNotice(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - unsigned int GetCount(); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** User mode +s
*/
class ModeUserServerNotice : public ModeHandler
{
public:
ModeUserServerNotice(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
unsigned int GetCount();
};
\ No newline at end of file diff --git a/include/modes/umode_w.h b/include/modes/umode_w.h index 271e959c4..26e214460 100644 --- a/include/modes/umode_w.h +++ b/include/modes/umode_w.h @@ -1,26 +1 @@ -/* +------------------------------------+ - * | 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. - * - * --------------------------------------------------- - */ - -#include "mode.h" - -class InspIRCd; - -/** User mode +w - */ -class ModeUserWallops : public ModeHandler -{ - public: - ModeUserWallops(InspIRCd* Instance); - ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding); - unsigned int GetCount(); -}; +/* +------------------------------------+
* | 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.
*
* ---------------------------------------------------
*/
#include "mode.h"
class InspIRCd;
/** User mode +w
*/
class ModeUserWallops : public ModeHandler
{
public:
ModeUserWallops(InspIRCd* Instance);
ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string ¶meter, bool adding);
unsigned int GetCount();
};
\ No newline at end of file |