summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-07 21:03:00 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-07 21:03:00 +0000
commit2fd5ed7aa9e5ac8a8d8e19c07f320306e594a47a (patch)
tree6c074de21bf3fcd315a77230d5f359e810a5bfd7
parent53e8c67c588859275d245bafbd100a312d6e09a3 (diff)
Started work on ModeParser::CleanMask()
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4145 e03df62e-2008-0410-955e-edbf42e46eb7
-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;