Comments describing classes, for the url http://svn.inspircd.org/docs/annotated.html

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5251 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-09-15 09:47:43 +00:00
parent 33887e4a65
commit 3944d6cf0d
8 changed files with 60 additions and 4 deletions

View File

@ -10,10 +10,16 @@
#define SQLUTILGC "SQLutil GetAssocChan" #define SQLUTILGC "SQLutil GetAssocChan"
#define SQLUTILSUCCESS "You shouldn't be reading this (success)" #define SQLUTILSUCCESS "You shouldn't be reading this (success)"
/** Used to associate an SQL query with a user
*/
class AssociateUser : public Request class AssociateUser : public Request
{ {
public: public:
/** Query ID
*/
unsigned long id; unsigned long id;
/** User
*/
userrec* user; userrec* user;
AssociateUser(Module* s, Module* d, unsigned long i, userrec* u) AssociateUser(Module* s, Module* d, unsigned long i, userrec* u)
@ -28,10 +34,16 @@ public:
} }
}; };
/** Used to associate an SQL query with a channel
*/
class AssociateChan : public Request class AssociateChan : public Request
{ {
public: public:
/** Query ID
*/
unsigned long id; unsigned long id;
/** Channel
*/
chanrec* chan; chanrec* chan;
AssociateChan(Module* s, Module* d, unsigned long i, chanrec* u) AssociateChan(Module* s, Module* d, unsigned long i, chanrec* u)
@ -46,9 +58,13 @@ public:
} }
}; };
/** Unassociate a user or class from an SQL query
*/
class UnAssociate : public Request class UnAssociate : public Request
{ {
public: public:
/** The query ID
*/
unsigned long id; unsigned long id;
UnAssociate(Module* s, Module* d, unsigned long i) UnAssociate(Module* s, Module* d, unsigned long i)
@ -63,10 +79,16 @@ public:
} }
}; };
/** Get the user associated with an SQL query ID
*/
class GetAssocUser : public Request class GetAssocUser : public Request
{ {
public: public:
/** The query id
*/
unsigned long id; unsigned long id;
/** The user
*/
userrec* user; userrec* user;
GetAssocUser(Module* s, Module* d, unsigned long i) GetAssocUser(Module* s, Module* d, unsigned long i)
@ -81,10 +103,16 @@ public:
} }
}; };
/** Get the channel associated with an SQL query ID
*/
class GetAssocChan : public Request class GetAssocChan : public Request
{ {
public: public:
/** The query id
*/
unsigned long id; unsigned long id;
/** The channel
*/
chanrec* chan; chanrec* chan;
GetAssocChan(Module* s, Module* d, unsigned long i) GetAssocChan(Module* s, Module* d, unsigned long i)

View File

@ -24,12 +24,18 @@ using namespace std;
/* $ModDesc: Provides aliases of commands. */ /* $ModDesc: Provides aliases of commands. */
/** An alias definition
*/
class Alias : public classbase class Alias : public classbase
{ {
public: public:
/** The text of the alias command */
irc::string text; irc::string text;
/** Text to replace with */
std::string replace_with; std::string replace_with;
/** Nickname required to perform alias */
std::string requires; std::string requires;
/** Alias requires ulined server */
bool uline; bool uline;
}; };

View File

@ -19,7 +19,8 @@
// and if a user matches an entry on the +e list then they can join the channel, overriding any (+b) bans set on them // and if a user matches an entry on the +e list then they can join the channel, overriding any (+b) bans set on them
/** Handles +e channel mode
*/
class BanException : public ListModeBase class BanException : public ListModeBase
{ {
public: public:

View File

@ -31,6 +31,8 @@
enum BlockAction { IBLOCK_KILL, IBLOCK_KILLOPERS, IBLOCK_NOTICE, IBLOCK_NOTICEOPERS, IBLOCK_SILENT }; enum BlockAction { IBLOCK_KILL, IBLOCK_KILLOPERS, IBLOCK_NOTICE, IBLOCK_NOTICEOPERS, IBLOCK_SILENT };
/** Holds a blocked message's details
*/
class BlockedMessage : public classbase class BlockedMessage : public classbase
{ {
public: public:

View File

@ -24,7 +24,8 @@
/* $ModDesc: Provides support for channel mode +P to block all-CAPS channel messages and notices */ /* $ModDesc: Provides support for channel mode +P to block all-CAPS channel messages and notices */
/** Handles the +P channel mode
*/
class BlockCaps : public ModeHandler class BlockCaps : public ModeHandler
{ {
public: public:

View File

@ -25,8 +25,8 @@ using namespace std;
/* $ModDesc: Provides support for unreal-style channel mode +c */ /* $ModDesc: Provides support for unreal-style channel mode +c */
/** Handles the +c channel mode
*/
class BlockColor : public ModeHandler class BlockColor : public ModeHandler
{ {
public: public:

View File

@ -25,6 +25,8 @@ static bool kludgeme = false;
/* $ModDesc: Povides support for services +r user/chan modes and more */ /* $ModDesc: Povides support for services +r user/chan modes and more */
/** Channel mode +r - mark a channel as identified
*/
class Channel_r : public ModeHandler class Channel_r : public ModeHandler
{ {
@ -49,6 +51,8 @@ class Channel_r : public ModeHandler
} }
}; };
/** User mode +r - mark a user as identified
*/
class User_r : public ModeHandler class User_r : public ModeHandler
{ {
@ -72,6 +76,8 @@ class User_r : public ModeHandler
} }
}; };
/** Channel mode +R - registered users only
*/
class Channel_R : public ModeHandler class Channel_R : public ModeHandler
{ {
public: public:
@ -100,6 +106,8 @@ class Channel_R : public ModeHandler
} }
}; };
/** User mode +R - only allow PRIVMSG and NOTICE from registered users
*/
class User_R : public ModeHandler class User_R : public ModeHandler
{ {
public: public:
@ -128,6 +136,8 @@ class User_R : public ModeHandler
} }
}; };
/** Channel mode +M - only allow privmsg and notice to channel from registered users
*/
class Channel_M : public ModeHandler class Channel_M : public ModeHandler
{ {
public: public:
@ -156,6 +166,8 @@ class Channel_M : public ModeHandler
} }
}; };
/** Dreamnforge-like services support
*/
class ModuleServices : public Module class ModuleServices : public Module
{ {

View File

@ -24,6 +24,8 @@ using namespace std;
/* $ModDesc: Povides support for ircu-style services accounts, including chmode +R, etc. */ /* $ModDesc: Povides support for ircu-style services accounts, including chmode +R, etc. */
/** Channel mode +R - unidentified users cannot join
*/
class AChannel_R : public ModeHandler class AChannel_R : public ModeHandler
{ {
public: public:
@ -52,6 +54,8 @@ class AChannel_R : public ModeHandler
} }
}; };
/** User mode +R - unidentified users cannot message
*/
class AUser_R : public ModeHandler class AUser_R : public ModeHandler
{ {
public: public:
@ -80,6 +84,8 @@ class AUser_R : public ModeHandler
} }
}; };
/** Channel mode +M - unidentified users cannot message channel
*/
class AChannel_M : public ModeHandler class AChannel_M : public ModeHandler
{ {
public: public: