summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_safelist.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index c474b9997..73e7d34f0 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -200,7 +200,7 @@ class ModuleSafeList : public Module
if(target_type == TYPE_USER)
{
userrec* u = (userrec*)item;
- ListData* ld = u->GetExt("safelist_cache");
+ ListData* ld = (ListData*)u->GetExt("safelist_cache");
if (ld)
{
u->Shrink("safelist_cache");
@@ -215,11 +215,11 @@ class ModuleSafeList : public Module
break;
}
}
- time_t* last_list_time = (time_t*)user->GetExt("safelist_last");
+ time_t* last_list_time = (time_t*)u->GetExt("safelist_last");
if (last_list_time)
{
delete last_list_time;
- user->Shrink("safelist_last");
+ u->Shrink("safelist_last");
}
}
}