summaryrefslogtreecommitdiff
path: root/src/cmd_whowas.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd_whowas.cpp')
-rw-r--r--src/cmd_whowas.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cmd_whowas.cpp b/src/cmd_whowas.cpp
index b710b5a08..e1c783f00 100644
--- a/src/cmd_whowas.cpp
+++ b/src/cmd_whowas.cpp
@@ -73,11 +73,12 @@ void cmd_whowas::Handle (char **parameters, int pcnt, userrec* user)
}
else
{
- whowas_set* grp = (whowas_set*)i;
+ whowas_set* grp = (whowas_set*)i->second;
if (grp->size())
{
- for (whowas_set::iterator u = grp->begin(); u != grp->end(); u++)
+ for (whowas_set::iterator ux = grp->begin(); ux != grp->end(); ux++)
{
+ WhoWasGroup* u = (WhoWasGroup*)*ux;
time_t rawtime = u->signon;
tm *timeinfo;
char b[MAXBUF];