Yes The one im looking for also has !amibanned. D:JRose said:Did you look at SRB2MS_Bot_beta.php? That one has the quit command. It should be right next to SRB2MS_Bot.php.
function byebye(&$irc, &$data)
{
foreach ($irc->channel['#srb2fun']->ops as $quitnick => $key )
{
if ($data->nick == $quitnick)
{
$irc->setAutoReconnect(FALSE);
$irc->setAutoRetry(FALSE);
$irc->quit('This quit was done by' + "$data->nick");
return;
}
}
}
Nopes.JRose said:I used TextPad and searched for quit and found this.
That is what you are looking for?Code:function byebye(&$irc, &$data) { foreach ($irc->channel['#srb2fun']->ops as $quitnick => $key ) { if ($data->nick == $quitnick) { $irc->setAutoReconnect(FALSE); $irc->setAutoRetry(FALSE); $irc->quit('This quit was done by' + "$data->nick"); return; } } }
Armonte said:Yes The one im looking for also has !amibanned. D:JRose said:Did you look at SRB2MS_Bot_beta.php? That one has the quit command. It should be right next to SRB2MS_Bot.php.
//$esperirc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!shutdown$', $bot, 'byebye');
//$esperirc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!gamelist$', $bot, 'ListGamesChan');
//$esperirc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!gamelist$', $bot, 'ListGamesPM');
//$esperirc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!RSSgamelist$', $bot, 'RSSListGamesPM');
$esperirc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!gamelist$', $bot, 'RSSListGames');
//$esperirc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!gamelist$', $bot, 'ListGamesChan');
$esperirc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!gamelist$', $bot, 'ListGamesPM');
//$esperirc->registerActionhandler(SMARTIRC_TYPE_QUERY, '^!RSSgamelist$', $bot, 'RSSListGamesPM');
//$esperirc->registerActionhandler(SMARTIRC_TYPE_CHANNEL, '^!gamelist$', $bot, 'RSSListGames');
$esperirc->registerTimehandler(120000, $bot, 'RSSListUpdate');