diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-07-09 15:16:22 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-07-09 15:16:22 +0200 |
commit | cf2fd595e08ff181f062bb238aea646ed719d946 (patch) | |
tree | ff12755a44f76c6c8b823d1d8efbf0fb5918dc5f /src/coremods | |
parent | eef472fb62c299d4900baf0339e0eaf08648dcf1 (diff) |
core_whowas Switch from map to a hash map and from irc::string to std::string
Diffstat (limited to 'src/coremods')
-rw-r--r-- | src/coremods/core_whowas.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/coremods/core_whowas.cpp b/src/coremods/core_whowas.cpp index a27eb4341..6c16ca1a3 100644 --- a/src/coremods/core_whowas.cpp +++ b/src/coremods/core_whowas.cpp @@ -40,7 +40,7 @@ CmdResult CommandWhowas::Handle (const std::vector<std::string>& parameters, Use return CMD_FAILURE; } - whowas_users::iterator i = whowas.find(assign(parameters[0])); + whowas_users::iterator i = whowas.find(parameters[0]); if (i == whowas.end()) { @@ -99,7 +99,7 @@ void CommandWhowas::AddToWhoWas(User* user) // Insert nick if it doesn't exist // 'first' will point to the newly inserted element or to the existing element with an equivalent key - std::pair<whowas_users::iterator, bool> ret = whowas.insert(std::make_pair(irc::string(user->nick.c_str()), static_cast<WhoWas::Nick*>(NULL))); + std::pair<whowas_users::iterator, bool> ret = whowas.insert(std::make_pair(user->nick, static_cast<WhoWas::Nick*>(NULL))); if (ret.second) // If inserted { @@ -202,7 +202,7 @@ WhoWasGroup::WhoWasGroup(User* user) : host(user->host), dhost(user->dhost), ide { } -WhoWas::Nick::Nick(const irc::string& nickname) +WhoWas::Nick::Nick(const std::string& nickname) : addtime(ServerInstance->Time()) , nick(nickname) { |