The InspIRCd Project
Home | Developers | Wiki | Forums | Bug Tracker | SVN | Download | Blog | Stats
Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

m_svshold.cpp File Reference

#include "inspircd.h"
#include <algorithm>
#include "users.h"
#include "channels.h"
#include "modules.h"
#include "configreader.h"

Include dependency graph for m_svshold.cpp:

Go to the source code of this file.

Classes

class  SVSHold
 Holds a SVSHold item. More...
class  cmd_svshold
 Handle /SVSHold. More...
class  ModuleSVSHold

Typedefs

typedef std::vector< SVSHold * > SVSHoldlist
typedef std::map< irc::string,
SVSHold * > 
SVSHoldMap

Functions

bool SVSHoldComp (const SVSHold *ban1, const SVSHold *ban2)

Variables

SVSHoldlist SVSHolds
SVSHoldMap HoldMap


Typedef Documentation

typedef std::vector<SVSHold*> SVSHoldlist
 

Definition at line 46 of file m_svshold.cpp.

typedef std::map<irc::string, SVSHold*> SVSHoldMap
 

Definition at line 47 of file m_svshold.cpp.


Function Documentation

bool SVSHoldComp const SVSHold ban1,
const SVSHold ban2
 

Definition at line 149 of file m_svshold.cpp.

References SVSHold::length, and SVSHold::set_on.

Referenced by cmd_svshold::Handle(), and ModuleSVSHold::OnDecodeMetaData().

00150 {
00151         return ((ban1->set_on + ban1->length) < (ban2->set_on + ban2->length));
00152 }


Variable Documentation

SVSHoldMap HoldMap
 

Definition at line 51 of file m_svshold.cpp.

Referenced by ModuleSVSHold::ExpireBans(), cmd_svshold::Handle(), ModuleSVSHold::OnDecodeMetaData(), ModuleSVSHold::OnSyncOtherMetaData(), and ModuleSVSHold::OnUserPreNick().

SVSHoldlist SVSHolds
 

Definition at line 50 of file m_svshold.cpp.

Referenced by ModuleSVSHold::ExpireBans(), cmd_svshold::Handle(), ModuleSVSHold::OnDecodeMetaData(), and ModuleSVSHold::OnStats().