diff options
author | Sadie Powell <sadie@witchery.services> | 2024-05-22 15:08:13 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-05-22 15:08:13 +0100 |
commit | c72e12d0a68a06871494a514f99d69ddccb16212 (patch) | |
tree | c47e7211d60abf053ff7f0dfa06ef477531d7277 /modules | |
parent | bce0d629fd09e10a17bc2cdc2f3f7fb81cc9ee7b (diff) |
Fix setting the history mode on UnrealIRCd.
Closes #406.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/protocol/unrealircd.cpp | 3 |
1 files changed, 1 insertions, 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; } }; |