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 /include | |
parent | eef472fb62c299d4900baf0339e0eaf08648dcf1 (diff) |
core_whowas Switch from map to a hash map and from irc::string to std::string
Diffstat (limited to 'include')
-rw-r--r-- | include/commands/cmd_whowas.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h index 021e9e3b7..8e1a8059d 100644 --- a/include/commands/cmd_whowas.h +++ b/include/commands/cmd_whowas.h @@ -46,11 +46,11 @@ namespace WhoWas /** Nickname whose information is stored in this class */ - const irc::string nick; + const std::string nick; /** Constructor to initialize fields */ - Nick(const irc::string& nickname); + Nick(const std::string& nickname); /** Destructor, deallocates all elements in the entries container */ @@ -64,7 +64,7 @@ namespace WhoWas /** Sets of users in the whowas system */ -typedef std::map<irc::string, WhoWas::Nick*> whowas_users; +typedef TR1NS::unordered_map<std::string, WhoWas::Nick*, irc::insensitive, irc::StrHashComp> whowas_users; /** Handle /WHOWAS. These command handlers can be reloaded by the core, * and handle basic RFC1459 commands. Commands within modules work |