X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=Bots%2FJavaGod.class.php;h=11b04e60277d4bcf079adcf3fa5065ee7d91df48;hb=2f0f5cc68df94a828efa64b55ba34be1a243c5a0;hp=1c0023e058d6111d11157af6e5cf4b0e8f831dbe;hpb=71736011ab715dde2d9c37d1570521a8a9baf8e1;p=PHP-P10.git diff --git a/Bots/JavaGod.class.php b/Bots/JavaGod.class.php index 1c0023e..11b04e6 100644 --- a/Bots/JavaGod.class.php +++ b/Bots/JavaGod.class.php @@ -40,6 +40,7 @@ class {$_NAME} extends Bot { if(is_a($this->bot, "P10_User")) { $this->uplink->join($this->bot, "#java", (P10_Channel::USERPRIV_OPED | P10_Channel::USERPRIV_VOICE)); $this->uplink->join($this->bot, "#dev", P10_Channel::USERPRIV_VOICE); + $this->uplink->join($this->bot, "#CoderCom", P10_Channel::USERPRIV_VOICE); } } else { $this->bot = $old; @@ -136,7 +137,7 @@ class {$_NAME} extends Bot { break; } $descriptor = array(0 => array("pipe", "r"),1 => array("pipe", "w"),2 => array("pipe", "w")); - $entry['proc'] = proc_open('java tmp/Debug_'.$entry['id'].'.class', $descriptor, $entry['pipes']); + $entry['proc'] = proc_open('java -classpath tmp Debug_'.$entry['id'], $descriptor, $entry['pipes']); if(!is_resource($entry['proc'])) { $this->uplink->notice($this->bot, $user, "error while loading c!"); return;