summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/timers.cpp8
-rw-r--r--src/uplink.cpp2
2 files changed, 5 insertions, 5 deletions
diff --git a/src/timers.cpp b/src/timers.cpp
index 74641e40f..9e0f46277 100644
--- a/src/timers.cpp
+++ b/src/timers.cpp
@@ -11,20 +11,20 @@
std::multimap<time_t, Timer *> TimerManager::Timers;
-Timer::Timer(long time_from_now, bool repeating)
+Timer::Timer(time_t time_from_now, bool repeating)
{
owner = NULL;
- trigger = Anope::CurTime + time_from_now;
+ trigger = Anope::CurTime + std::abs(time_from_now);
secs = time_from_now;
repeat = repeating;
TimerManager::AddTimer(this);
}
-Timer::Timer(Module *creator, long time_from_now, bool repeating)
+Timer::Timer(Module *creator, time_t time_from_now, bool repeating)
{
owner = creator;
- trigger = Anope::CurTime + time_from_now;
+ trigger = Anope::CurTime + std::abs(time_from_now);
secs = time_from_now;
repeat = repeating;
diff --git a/src/uplink.cpp b/src/uplink.cpp
index 60e278dce..0e4605841 100644
--- a/src/uplink.cpp
+++ b/src/uplink.cpp
@@ -21,7 +21,7 @@ class ReconnectTimer final
: public Timer
{
public:
- ReconnectTimer(int wait)
+ ReconnectTimer(time_t wait)
: Timer(wait)
{
}