diff options
Diffstat (limited to 'src/mode.cpp')
-rw-r--r-- | src/mode.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/mode.cpp b/src/mode.cpp index 320ba6195..6f212bdad 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -55,6 +55,13 @@ using namespace std; /* +v (channel voice) */ #include "modes/cmode_v.h" +/* +s (server notices) */ +#include "modes/umode_s.h" +/* +w (see wallops) */ +#include "modes/umode_w.h" +/* +i (invisible) */ +#include "modes/umode_i.h" + extern int MODCOUNT; extern std::vector<Module*> modules; extern std::vector<ircd_module*> factory; @@ -456,6 +463,10 @@ void ModeParser::CleanMask(std::string &mask) } } +void ModeParser::BuildModeString(userrec* user) +{ +} + bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter) { unsigned char mask = 0; @@ -505,6 +516,11 @@ ModeParser::ModeParser() this->AddMode(new ModeChannelHalfOp, 'h'); this->AddMode(new ModeChannelVoice, 'v'); + /* Now for usermodes */ + this->AddMode(new ModeUserServerNotice, 's'); + this->AddMode(new ModeUserWallops, 'w'); + this->AddMode(new ModeUserInvisible, 'i'); + /* TODO: User modes +swio */ } |