1
0
Fork 0

Actually use timing setting

This commit is contained in:
Andrew Tomaka 2012-11-15 10:48:27 -05:00
parent c8b524b6d9
commit 8ccc387b6c

View file

@ -7,7 +7,7 @@ $conf = json_decode(implode("\n", file(__DIR__ . '/conf/settings.conf')));
$bot = &new ImgurBot($conf); $bot = &new ImgurBot($conf);
$irc = &new Net_SmartIRC(); $irc = &new Net_SmartIRC();
if($conf->debug) $irc->setDebug(SMARTIRC_DEBUG_ALL); if($conf->debug) $irc->setDebug(SMARTIRC_DEBUG_ALL);
$irc->registerTimehandler(10000, $bot, 'randomTop'); $irc->registerTimehandler($conf->timing, $bot, 'randomTop');
if($conf->ssl) { if($conf->ssl) {
$irc->setUseSockets(FALSE); $irc->setUseSockets(FALSE);
$irc->connect('ssl://' . $conf->server, $conf->port); $irc->connect('ssl://' . $conf->server, $conf->port);