connect($strUser, $strPass, $strCPPS, $strServer); } while ($login != -1); if ($priv == true){ $p->bot($privID, $strUser, $strPass, $strCPPS, $strServer); } else { $p->bot("all", $strUser, $strPass, $strCPPS, $strServer); }