From 8ccc387b6c0417535bbe7d2841d8d5afe03711f2 Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Thu, 15 Nov 2012 10:48:27 -0500 Subject: [PATCH] Actually use timing setting --- bot.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.php b/bot.php index 5adb7a4..9fcf003 100644 --- a/bot.php +++ b/bot.php @@ -7,7 +7,7 @@ $conf = json_decode(implode("\n", file(__DIR__ . '/conf/settings.conf'))); $bot = &new ImgurBot($conf); $irc = &new Net_SmartIRC(); if($conf->debug) $irc->setDebug(SMARTIRC_DEBUG_ALL); -$irc->registerTimehandler(10000, $bot, 'randomTop'); +$irc->registerTimehandler($conf->timing, $bot, 'randomTop'); if($conf->ssl) { $irc->setUseSockets(FALSE); $irc->connect('ssl://' . $conf->server, $conf->port);