diff options
| author | 2006-07-08 17:04:18 +0000 | |
|---|---|---|
| committer | 2006-07-08 17:04:18 +0000 | |
| commit | d40e1e5b0b8c4b94359637921387cd80e9de991b (patch) | |
| tree | 130905009d41a905f527082d2fa03c893020982b /src/mode.cpp | |
| parent | Remove comemnted-out GiveVoice and TakeVoice (diff) | |
| download | inspircd++-d40e1e5b0b8c4b94359637921387cd80e9de991b.tar.gz inspircd++-d40e1e5b0b8c4b94359637921387cd80e9de991b.tar.bz2 inspircd++-d40e1e5b0b8c4b94359637921387cd80e9de991b.zip | |
Added usermodes +swi.
Note the usermode system needs a bit of a refactor to combine
module and core modes into the same storage neatly (as we did
with channels) this is next on my todo.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4174 e03df62e-2008-0410-955e-edbf42e46eb7
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 */ } |
