From 6addc5c8dd8535b12bafe0da7466c9c22daa0e37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc?= Date: Mon, 13 May 2019 01:20:47 +0200 Subject: [PATCH] Fix wrong formatting to "Vote Delay Minutes" when delay above 60s (#1009) Fixes #1007 --- plugins/basevotes.sp | 2 +- plugins/funvotes.sp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/basevotes.sp b/plugins/basevotes.sp index 9f98c4b1f..c426ecc76 100644 --- a/plugins/basevotes.sp +++ b/plugins/basevotes.sp @@ -405,7 +405,7 @@ bool TestVoteDelay(int client) { if (delay > 60) { - ReplyToCommand(client, "[SM] %t", "Vote Delay Minutes", delay % 60); + ReplyToCommand(client, "[SM] %t", "Vote Delay Minutes", (delay / 60)); } else { diff --git a/plugins/funvotes.sp b/plugins/funvotes.sp index 1a5b12e7f..4587dfbf3 100644 --- a/plugins/funvotes.sp +++ b/plugins/funvotes.sp @@ -324,7 +324,7 @@ bool TestVoteDelay(int client) { if (delay > 60) { - ReplyToCommand(client, "[SM] %t", "Vote Delay Minutes", delay % 60); + ReplyToCommand(client, "[SM] %t", "Vote Delay Minutes", (delay / 60)); } else {