Skip to content

Commit

Permalink
Just comments
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6655 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Mar 11, 2007
1 parent 8adc40e commit 459658d
Showing 1 changed file with 71 additions and 1 deletion.
72 changes: 71 additions & 1 deletion src/modules/m_spanningtree/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@
*/
const long ProtocolVersion = 1104;


/** Forward declarations
*/
class cmd_rconnect;
class SpanningTreeUtilities;
class TimeSyncTimer;
class TreeServer;
class Link;

/** This is the main class for the spanningtree module
*/
class ModuleSpanningTree : public Module
{
int line;
Expand All @@ -32,27 +35,94 @@ class ModuleSpanningTree : public Module
SpanningTreeUtilities* Utils;

public:
/** Timer for clock syncs
*/
TimeSyncTimer *SyncTimer;

/** Constructor
*/
ModuleSpanningTree(InspIRCd* Me);

/** Shows /LINKS
*/
void ShowLinks(TreeServer* Current, userrec* user, int hops);

/** Counts local servers
*/
int CountLocalServs();

/** Counts local and remote servers
*/
int CountServs();

/** Handle LINKS command
*/
void HandleLinks(const char** parameters, int pcnt, userrec* user);

/** Handle LUSERS command
*/
void HandleLusers(const char** parameters, int pcnt, userrec* user);

/** Show MAP output to a user (recursive)
*/
void ShowMap(TreeServer* Current, userrec* user, int depth, char matrix[128][80], float &totusers, float &totservers);

/** Handle remote MOTD
*/
int HandleMotd(const char** parameters, int pcnt, userrec* user);

/** Handle remote ADMIN
*/
int HandleAdmin(const char** parameters, int pcnt, userrec* user);

/** Handle remote STATS
*/
int HandleStats(const char** parameters, int pcnt, userrec* user);

/** Handle MAP command
*/
void HandleMap(const char** parameters, int pcnt, userrec* user);

/** Handle SQUIT
*/
int HandleSquit(const char** parameters, int pcnt, userrec* user);

/** Handle TIME
*/
int HandleTime(const char** parameters, int pcnt, userrec* user);

/** Handle remote WHOIS
*/
int HandleRemoteWhois(const char** parameters, int pcnt, userrec* user);

/** Ping all local servers
*/
void DoPingChecks(time_t curtime);

/** Connect a server locally
*/
void ConnectServer(Link* x);

/** Check if any servers are due to be autoconnected
*/
void AutoConnectServers(time_t curtime);

/** Handle remote VERSON
*/
int HandleVersion(const char** parameters, int pcnt, userrec* user);

/** Handle CONNECT
*/
int HandleConnect(const char** parameters, int pcnt, userrec* user);

/** Send out time sync to all servers
*/
void BroadcastTimeSync();

/**
** *** MODULE EVENTS ***
**/

virtual int OnPreCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, bool validated, const std::string &original_line);
virtual void OnPostCommand(const std::string &command, const char** parameters, int pcnt, userrec *user, CmdResult result, const std::string &original_line);
virtual void OnGetServerDescription(const std::string &servername,std::string &description);
Expand Down

0 comments on commit 459658d

Please sign in to comment.