summaryrefslogtreecommitdiff
path: root/src/base.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/base.cpp')
-rw-r--r--src/base.cpp10
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];