diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 18:32:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-07 18:32:31 +0000 |
commit | 4c6b7c70ce61cb431df07780eba935eca529a65b (patch) | |
tree | 8c52c386b50043bc8768a9a38ebc96e2e63872a1 /src/base.cpp | |
parent | 2d821f2980825be73e3f90b47ffff365b0ec5ecb (diff) |
Added Metadata API (for transferring extensibles over a network transparent to the protocol)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2253 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/base.cpp')
-rw-r--r-- | src/base.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/base.cpp b/src/base.cpp index 69468f59c..3b5baae59 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -18,6 +18,7 @@ #include "base.h" #include <time.h> #include <map> +#include <deque> #include <string> #include "inspircd.h" #include "modules.h" @@ -59,10 +60,17 @@ char* Extensible::GetExt(std::string key) { return (this->Extension_Items.find(key))->second; } - log(DEBUG,"Cant find item %s",key.c_str()); return NULL; } +void Extensible::GetExtList(std::deque<std::string> &list) +{ + for (std::map<std::string,char*>::iterator u = Extension_Items.begin(); u != Extension_Items.end(); u++) + { + list.push_back(u->first); + } +} + void BoolSet::Set(int number) { this->bits |= bitfields[number]; |