summaryrefslogtreecommitdiff
path: root/src/configreader.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2013-04-07 22:23:25 +0100
committerPeter Powell <petpow@saberuk.com>2013-04-11 23:08:03 +0100
commit5c29c53f651fb0c513a50c9396e08ba340a6d2bf (patch)
treec00ab92b6ff6d002e6c40909587b146ba5e45612 /src/configreader.cpp
parent295b3e7ba15a228948358bd6f23591a9cb5bf5a8 (diff)
Convert ISUPPORT to use a map instead of a string.
Diffstat (limited to 'src/configreader.cpp')
-rw-r--r--src/configreader.cpp37
1 files changed, 1 insertions, 36 deletions
diff --git a/src/configreader.cpp b/src/configreader.cpp
index 804463309..2906d66b9 100644
--- a/src/configreader.cpp
+++ b/src/configreader.cpp
@@ -49,41 +49,6 @@ ServerConfig::ServerConfig()
c_ipv6_range = 128;
}
-void ServerConfig::Update005()
-{
- std::stringstream out(data005);
- std::vector<std::string> data;
- std::string token;
- while (out >> token)
- data.push_back(token);
- sort(data.begin(), data.end());
-
- std::string line5;
- isupport.clear();
- for(unsigned int i=0; i < data.size(); i++)
- {
- token = data[i];
- line5 = line5 + token + " ";
- if (i % 13 == 12)
- {
- line5.append(":are supported by this server");
- isupport.push_back(line5);
- line5.clear();
- }
- }
- if (!line5.empty())
- {
- line5.append(":are supported by this server");
- isupport.push_back(line5);
- }
-}
-
-void ServerConfig::Send005(User* user)
-{
- for (std::vector<std::string>::iterator line = ServerInstance->Config->isupport.begin(); line != ServerInstance->Config->isupport.end(); line++)
- user->WriteNumeric(RPL_ISUPPORT, "%s %s", user->nick.c_str(), line->c_str());
-}
-
template<typename T, typename V>
static void range(T& value, V min, V max, V def, const char* msg)
{
@@ -932,7 +897,7 @@ void ConfigReaderThread::Finish()
Config->ApplyDisabledCommands(Config->DisabledCommands);
User* user = ServerInstance->FindNick(TheUserUID);
FOREACH_MOD(I_OnRehash, OnRehash(user));
- ServerInstance->BuildISupport();
+ ServerInstance->ISupport.Build();
ServerInstance->Logs->CloseLogs();
ServerInstance->Logs->OpenFileLogs();