diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-03 23:20:20 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-02-03 23:20:20 +0000 |
commit | f1271614679843191bb247c0db2716acb5ac0e4b (patch) | |
tree | fefd14e99f56bf6bc6f4c42bb58f3f7da1a310c8 /src/modules | |
parent | 34fe4276bd6bc6fee5293d4817c8e36e4fffd75c (diff) |
Clear up header insanity
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8808 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_alltime.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_conn_join.cpp | 8 | ||||
-rw-r--r-- | src/modules/m_conn_umodes.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_deaf.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_filter.h | 2 | ||||
-rw-r--r-- | src/modules/m_http_client.cpp | 10 | ||||
-rw-r--r-- | src/modules/m_operjoin.cpp | 8 | ||||
-rw-r--r-- | src/modules/m_opermodes.cpp | 4 | ||||
-rw-r--r-- | src/modules/m_spanningtree/treesocket2.cpp | 2 | ||||
-rw-r--r-- | src/modules/m_spanningtree/utils.h | 4 |
10 files changed, 25 insertions, 25 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index aa244b45d..602646ebd 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -36,7 +36,7 @@ class CommandAlltime : public Command int delta = ServerInstance->GetTimeDelta(); - string msg = ":" + string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time for " + + std::string msg = ":" + std::string(ServerInstance->Config->ServerName) + " NOTICE " + user->nick + " :System time for " + ServerInstance->Config->ServerName + " is: " + fmtdate + " (delta " + ConvToStr(delta) + " seconds): Time with delta: "+ fmtdate2; if (IS_LOCAL(user)) @@ -45,7 +45,7 @@ class CommandAlltime : public Command } else { - deque<string> params; + std::deque<std::string> params; params.push_back(user->nick); params.push_back(msg); Event ev((char *) ¶ms, NULL, "send_push"); diff --git a/src/modules/m_conn_join.cpp b/src/modules/m_conn_join.cpp index bdd8f43ea..b3be3932b 100644 --- a/src/modules/m_conn_join.cpp +++ b/src/modules/m_conn_join.cpp @@ -22,14 +22,14 @@ class ModuleConnJoin : public Module std::vector<std::string> Joinchans; - int tokenize(const string &str, std::vector<std::string> &tokens) + int tokenize(const std::string &str, std::vector<std::string> &tokens) { // skip delimiters at beginning. - string::size_type lastPos = str.find_first_not_of(",", 0); + std::string::size_type lastPos = str.find_first_not_of(",", 0); // find first "non-delimiter". - string::size_type pos = str.find_first_of(",", lastPos); + std::string::size_type pos = str.find_first_of(",", lastPos); - while (string::npos != pos || string::npos != lastPos) + while (std::string::npos != pos || std::string::npos != lastPos) { // found a token, add it to the vector. tokens.push_back(str.substr(lastPos, pos - lastPos)); diff --git a/src/modules/m_conn_umodes.cpp b/src/modules/m_conn_umodes.cpp index 6ba965d61..bfae76f1b 100644 --- a/src/modules/m_conn_umodes.cpp +++ b/src/modules/m_conn_umodes.cpp @@ -63,9 +63,9 @@ class ModuleModesOnConnect : public Module if (!ThisModes.empty()) { std::string buf; - stringstream ss(ThisModes); + std::stringstream ss(ThisModes); - vector<string> tokens; + std::vector<std::string> tokens; // split ThisUserModes into modes and mode params while (ss >> buf) diff --git a/src/modules/m_deaf.cpp b/src/modules/m_deaf.cpp index 5d648cff9..ed110d6c9 100644 --- a/src/modules/m_deaf.cpp +++ b/src/modules/m_deaf.cpp @@ -118,13 +118,13 @@ class ModuleDeaf : public Module if (!deaf_bypasschars.empty()) { is_bypasschar_avail = 1; - if (deaf_bypasschars.find(text[0], 0) != string::npos) + if (deaf_bypasschars.find(text[0], 0) != std::string::npos) is_bypasschar = 1; } if (!deaf_bypasschars_uline.empty()) { is_bypasschar_uline_avail = 1; - if (deaf_bypasschars_uline.find(text[0], 0) != string::npos) + if (deaf_bypasschars_uline.find(text[0], 0) != std::string::npos) is_bypasschar_uline = 1; } diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index c4d2e71ef..5bc41b136 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -388,7 +388,7 @@ int FilterBase::OnPreCommand(const std::string &command, const char** parameters void FilterBase::OnRehash(User* user, const std::string ¶meter) { ConfigReader* MyConf = new ConfigReader(ServerInstance); - vector<std::string>().swap(exemptfromfilter); + std::vector<std::string>().swap(exemptfromfilter); for (int index = 0; index < MyConf->Enumerate("exemptfromfilter"); ++index) { std::string chan = MyConf->ReadValue("exemptfromfilter", "channel", index); diff --git a/src/modules/m_http_client.cpp b/src/modules/m_http_client.cpp index a2a6d9014..1ca762b12 100644 --- a/src/modules/m_http_client.cpp +++ b/src/modules/m_http_client.cpp @@ -54,13 +54,13 @@ class HTTPResolver : public Resolver HTTPSocket *socket; std::string orig; public: - HTTPResolver(HTTPSocket *s, InspIRCd *Instance, const string &hostname, bool &cached, Module* me) : Resolver(Instance, hostname, DNS_QUERY_FORWARD, cached, me), socket(s) + HTTPResolver(HTTPSocket *s, InspIRCd *Instance, const std::string &hostname, bool &cached, Module* me) : Resolver(Instance, hostname, DNS_QUERY_FORWARD, cached, me), socket(s) { ServerInstance->Log(DEBUG,">>>>>>>>>>>>>>>>>> HTTPResolver::HTTPResolver <<<<<<<<<<<<<<<"); orig = hostname; } - void OnLookupComplete(const string &result, unsigned int ttl, bool cached, int resultnum = 0) + void OnLookupComplete(const std::string &result, unsigned int ttl, bool cached, int resultnum = 0) { ServerInstance->Log(DEBUG,"************* HTTPResolver::OnLookupComplete ***************"); if (!resultnum) @@ -69,14 +69,14 @@ class HTTPResolver : public Resolver socket->OnClose(); } - void OnError(ResolverError e, const string &errmsg) + void OnError(ResolverError e, const std::string &errmsg) { ServerInstance->Log(DEBUG,"!!!!!!!!!!!!!!!! HTTPResolver::OnError: %s", errmsg.c_str()); socket->OnClose(); } }; -typedef vector<HTTPSocket*> HTTPList; +typedef std::vector<HTTPSocket*> HTTPList; class ModuleHTTPClient : public Module { @@ -256,7 +256,7 @@ bool HTTPSocket::ParseURL(const std::string &iurl) return true; } -void HTTPSocket::Connect(const string &ip) +void HTTPSocket::Connect(const std::string &ip) { this->response = new HTTPClientResponse((Module*)Mod, req.GetSource() , url.url, 0, ""); diff --git a/src/modules/m_operjoin.cpp b/src/modules/m_operjoin.cpp index be12b6be1..60796fd3f 100644 --- a/src/modules/m_operjoin.cpp +++ b/src/modules/m_operjoin.cpp @@ -21,14 +21,14 @@ class ModuleOperjoin : public Module std::string operChan; std::vector<std::string> operChans; - int tokenize(const string &str, std::vector<std::string> &tokens) + int tokenize(const std::string &str, std::vector<std::string> &tokens) { // skip delimiters at beginning. - string::size_type lastPos = str.find_first_not_of(",", 0); + std::string::size_type lastPos = str.find_first_not_of(",", 0); // find first "non-delimiter". - string::size_type pos = str.find_first_of(",", lastPos); + std::string::size_type pos = str.find_first_of(",", lastPos); - while (string::npos != pos || string::npos != lastPos) + while (std::string::npos != pos || std::string::npos != lastPos) { // found a token, add it to the vector. tokens.push_back(str.substr(lastPos, pos - lastPos)); diff --git a/src/modules/m_opermodes.cpp b/src/modules/m_opermodes.cpp index 7e96c86d7..cdd59c7b6 100644 --- a/src/modules/m_opermodes.cpp +++ b/src/modules/m_opermodes.cpp @@ -92,8 +92,8 @@ class ModuleModesOnOper : public Module smodes = "+" + smodes; std::string buf; - stringstream ss(smodes); - vector<string> tokens; + std::stringstream ss(smodes); + std::vector<std::string> tokens; // split into modes and mode params while (ss >> buf) diff --git a/src/modules/m_spanningtree/treesocket2.cpp b/src/modules/m_spanningtree/treesocket2.cpp index f3eff8d74..f668b9061 100644 --- a/src/modules/m_spanningtree/treesocket2.cpp +++ b/src/modules/m_spanningtree/treesocket2.cpp @@ -1661,7 +1661,7 @@ int TreeSocket::OnIncomingConnection(int newsock, char* ip) found = (std::find(Utils->ValidIPs.begin(), Utils->ValidIPs.end(), ip) != Utils->ValidIPs.end()); if (!found) { - for (vector<std::string>::iterator i = Utils->ValidIPs.begin(); i != Utils->ValidIPs.end(); i++) + for (std::vector<std::string>::iterator i = Utils->ValidIPs.begin(); i != Utils->ValidIPs.end(); i++) if (irc::sockets::MatchCIDR(ip, (*i).c_str())) found = true; diff --git a/src/modules/m_spanningtree/utils.h b/src/modules/m_spanningtree/utils.h index 0dbf06ec9..a77c1d27d 100644 --- a/src/modules/m_spanningtree/utils.h +++ b/src/modules/m_spanningtree/utils.h @@ -26,9 +26,9 @@ class ModuleSpanningTree; * tree, used for rapid linear lookups. */ #ifdef WINDOWS -typedef nspace::hash_map<std::string, TreeServer*, nspace::hash_compare<string, less<string> > > server_hash; +typedef nspace::hash_map<std::string, TreeServer*, nspace::hash_compare<std::string, less<string> > > server_hash; #else -typedef nspace::hash_map<std::string, TreeServer*, nspace::hash<string>, irc::StrHashComp> server_hash; +typedef nspace::hash_map<std::string, TreeServer*, nspace::hash<std::string>, irc::StrHashComp> server_hash; #endif typedef std::map<TreeServer*,TreeServer*> TreeServerList; |