summaryrefslogtreecommitdiff
path: root/include/mode.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 19:18:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 19:18:17 +0000
commitad2829e7c482ac0c70a9bc524529adb883cd6b1b (patch)
treedc156c474df14c17195d552efbb26361d0012366 /include/mode.h
parent16add8425c1cdc77aa72c13cbd3070b31acd6f22 (diff)
More comments
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7381 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/mode.h')
-rw-r--r--include/mode.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h
index d548ea8d7..6d91de1a8 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -30,7 +30,9 @@ class InspIRCd;
*/
enum ModeType
{
+ /** User mode */
MODETYPE_USER = 0,
+ /** Channel mode */
MODETYPE_CHANNEL = 1
};
@@ -64,8 +66,11 @@ enum ModeMasks
*/
enum PrefixModeValue
{
+ /* +v */
VOICE_VALUE = 10000,
+ /* +h */
HALFOP_VALUE = 20000,
+ /* +o */
OP_VALUE = 30000
};
@@ -93,6 +98,9 @@ typedef std::pair<bool,std::string> ModePair;
class CoreExport ModeHandler : public Extensible
{
protected:
+ /**
+ * Creator/owner pointer
+ */
InspIRCd* ServerInstance;
/**
* The mode letter you're implementing.
@@ -282,6 +290,9 @@ class CoreExport ModeHandler : public Extensible
class CoreExport ModeWatcher : public Extensible
{
protected:
+ /**
+ * Creator/owner pointer
+ */
InspIRCd* ServerInstance;
/**
* The mode letter this class is watching
@@ -350,6 +361,9 @@ typedef std::vector<ModeWatcher*>::iterator ModeWatchIter;
class CoreExport ModeParser : public classbase
{
private:
+ /**
+ * Creator/owner pointer
+ */
InspIRCd* ServerInstance;
/** Mode handlers for each mode, to access a handler subtract
* 65 from the ascii value of the mode letter.
@@ -502,3 +516,4 @@ class CoreExport ModeParser : public classbase
};
#endif
+