From 78830b3bd248450cf137e57b9883c06597cf9442 Mon Sep 17 00:00:00 2001 From: dms Date: Sat, 23 Sep 2000 12:45:22 +0000 Subject: [PATCH] non-mysql stub git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk/blootbot@131 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/Modules/RootWarn.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Modules/RootWarn.pl b/src/Modules/RootWarn.pl index ddb533a..fdd7fc1 100644 --- a/src/Modules/RootWarn.pl +++ b/src/Modules/RootWarn.pl @@ -1,7 +1,7 @@ # # RootWarn.pl: Warn people about usage of root on IRC. # Author: dms -# Version: v0.2c (19991125) +# Version: v0.3 (20000923) # Created: 19991008 # @@ -61,13 +61,19 @@ sub CmdrootWarn { my $count = &countKeys("rootwarn"); if ($count == 0) { - return "no-one has been warned about root, woohoo"; + &performReply("no-one has been warned about root, woohoo"); + return; } # reply #1. $reply = "there ".&fixPlural("has",$count) ." been \002$i\002 ". &fixPlural("rooter",$count) ." warned about root."; + if ($param{'DBType'} !~ /^mysql$/i) { + &FIXME("rootwarn does not yet support non-mysql."); + return; + } + # reply #2. $found = 0; my $query = "SELECT attempt FROM rootwarn WHERE attempt > 2"; @@ -87,7 +93,7 @@ sub CmdrootWarn { " done it at least 3 times."; } - return $reply; + &performStrictReply($reply); } 1; -- 2.39.5