From 9f36316d730c7b4457a5625ca8012ead11bd9482 Mon Sep 17 00:00:00 2001 From: special Date: Mon, 9 Oct 2006 04:17:41 +0000 Subject: [PATCH] Fixed percentage in m_tline (division was backwards, so it displayed 200% instead of 50%) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5459 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_tline.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index 0208222a4..320515bb0 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -64,7 +64,7 @@ class cmd_tline : public command_t } } if (n_matched) - user->WriteServ( "NOTICE %s :*** TLINE: Counted %0.0f user(s). Matched '%s' against %0.0f user(s) (%0.2f%% of the userbase). %0.0f by hostname and %0.0f by IP address.",user->nick, n_counted, parameters[0], n_matched, (n_counted/n_matched)*100, n_match_host, n_match_ip); + user->WriteServ( "NOTICE %s :*** TLINE: Counted %0.0f user(s). Matched '%s' against %0.0f user(s) (%0.2f%% of the userbase). %0.0f by hostname and %0.0f by IP address.",user->nick, n_counted, parameters[0], n_matched, (n_matched/n_counted)*100, n_match_host, n_match_ip); else user->WriteServ( "NOTICE %s :*** TLINE: Counted %0.0f user(s). Matched '%s' against no user(s).", user->nick, n_counted, parameters[0]); -- 2.39.5