summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/mode.h3
-rw-r--r--src/mode.cpp6
2 files changed, 7 insertions, 2 deletions
diff --git a/include/mode.h b/include/mode.h
index 94efca923..b1fca324c 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -180,8 +180,7 @@ class ModeParser
ModeParser();
bool AddMode(ModeHandler* mh, unsigned const char modeletter);
void Process(char **parameters, int pcnt, userrec *user, bool servermode);
-
- //void ServerMode(char **parameters, int pcnt, userrec *user);
+ static void CleanMask(std::string &mask);
};
class cmd_mode : public command_t
diff --git a/src/mode.cpp b/src/mode.cpp
index c3160066f..596233cfd 100644
--- a/src/mode.cpp
+++ b/src/mode.cpp
@@ -567,6 +567,12 @@ void cmd_mode::Handle (char **parameters, int pcnt, userrec *user)
return;
}
+void ModeParser::CleanMask(std::string &mask)
+{
+ std::string::size_type pos_of_pling = mask.find_first_of('!');
+ std::string::size_type pos_of_at = mask.find_first_of('@');
+}
+
bool ModeParser::AddMode(ModeHandler* mh, unsigned const char modeletter)
{
unsigned char mask = 0;