diff options
Diffstat (limited to 'modules/protocol/ratbox.cpp')
-rw-r--r-- | modules/protocol/ratbox.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/modules/protocol/ratbox.cpp b/modules/protocol/ratbox.cpp index 4541419b7..f8a6d979c 100644 --- a/modules/protocol/ratbox.cpp +++ b/modules/protocol/ratbox.cpp @@ -46,12 +46,11 @@ void ratbox::senders::Logout::Send(User *u) void ratbox::senders::SQLine::Send(User*, XLine* x) { - /* Calculate the time left before this would expire, capping it at 2 days */ - time_t timeleft = x->GetExpires() - Anope::CurTime; - - if (timeleft > 172800 || !x->GetExpires()) - timeleft = 172800; + if (x->IsExpired()) + return; + /* Calculate the time left before this would expire */ + time_t timeleft = x->GetExpires() > 0 ? x->GetExpires() - Anope::CurTime : 0; #warning "find introduced" // Uplink::Send(FindIntroduced(), "ENCAP", "*", "RESV", timeleft, x->GetMask(), 0, x->GetReason()); } |