summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-07-09 14:57:00 +0200
committerAttila Molnar <attilamolnar@hush.com>2014-07-09 14:57:00 +0200
commit93786820aad505e00d5c1c07228ef7aa6c3f22b8 (patch)
treee6a6cc3fd61fd3cc0f3a62e4f7b2ceb6e56286dd /include
parentc81524733b1fa409e3123166a8521e5984f47059 (diff)
core_whowas Create class WhoWas::Nick, store pointers to those in the map
Diffstat (limited to 'include')
-rw-r--r--include/commands/cmd_whowas.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h
index 0a38b44f1..b058ef37d 100644
--- a/include/commands/cmd_whowas.h
+++ b/include/commands/cmd_whowas.h
@@ -30,9 +30,21 @@ class WhoWasGroup;
*/
typedef std::deque<WhoWasGroup*> whowas_set;
+namespace WhoWas
+{
+ /** Everything known about one nick
+ */
+ struct Nick
+ {
+ /** Container where each element has information about one occurrence of this nick
+ */
+ whowas_set entries;
+ };
+}
+
/** Sets of users in the whowas system
*/
-typedef std::map<irc::string,whowas_set*> whowas_users;
+typedef std::map<irc::string, WhoWas::Nick*> whowas_users;
/** Sets of time and users in whowas list
*/