mode.h File Reference
#include "channels.h"
Include dependency graph for mode.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Typedef Documentation
|
|
Used by ModeHandler::ModeSet() to return the state of a mode upon a channel or user.
The pair contains an activity flag, true if the mode is set with the given parameter, and the parameter of the mode (or the parameter provided) in the std::string.
Definition at line 77 of file mode.h. |
Enumeration Type Documentation
|
|
Holds mode actions - modes can be allowed or denied.
- Enumerator:
-
| MODEACTION_DENY |
|
| MODEACTION_ALLOW |
|
Definition at line 37 of file mode.h. |
|
|
Used to mask off the mode types in the mode handler array.
Used in a simple two instruction hashing function "(modeletter - 65) OR mask" - Enumerator:
-
Definition at line 48 of file mode.h. |
|
|
Holds the values for different type of modes that can exist, USER or CHANNEL type.
- Enumerator:
-
| MODETYPE_USER |
User mode. |
| MODETYPE_CHANNEL |
Channel mode. |
Definition at line 26 of file mode.h. |
|
|
These fixed values can be used to proportionally compare module-defined prefixes to known values.
For example, if your module queries a Channel, and is told that user 'joebloggs' has the prefix '$', and you dont know what $ means, then you can compare it to these three values to determine its worth against them. For example if '$' had a value of 15000, you would know it is of higher status than voice, but lower status than halfop. No two modes should have equal prefix values. - Enumerator:
-
| VOICE_VALUE |
|
| HALFOP_VALUE |
|
| OP_VALUE |
|
Definition at line 62 of file mode.h. |