From c72e12d0a68a06871494a514f99d69ddccb16212 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 22 May 2024 15:08:13 +0100 Subject: [PATCH] Fix setting the history mode on UnrealIRCd. Closes #406. --- modules/protocol/unrealircd.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/protocol/unrealircd.cpp b/modules/protocol/unrealircd.cpp index edae22a0a..1c3f53270 100644 --- a/modules/protocol/unrealircd.cpp +++ b/modules/protocol/unrealircd.cpp @@ -729,8 +729,7 @@ public: // The part after the ':' is a duration and it // can be in the user friendly "1d3h20m" format, make sure we accept that auto n = Anope::DoTime(rest.substr(1)); - return n <= 0; - return false; + return n > 0; } };