Commit 6153b9f8 authored by alexm98's avatar alexm98

Modified the Slave command, still not running properly, should send it

the user's nickname as context
parent 62d76ced
<?php <?php
// not done, needs to somehow get the user that sends the message. class Slave implements Command{
class Slave{ private $user;
public $user;
public function __construct($user = false){ public function __construct($user = false){
$this->user = $user; $this->user = $user;
} }
// Not implemented
public function run($channel){ public function run($channel){
$response = ''; /* $response = '';
if($user == $configs['master']) $config = require('config.php');
fputs($context[0],"PRIVMSG ".$context[1]." :Yes master! \n");
else
fputs($context[0],"PRIVMSG ".$context[1]." :get lost ".$user."\n");
$conn = Connection::getInstance(); if($user == $config['master'])
$conn->SendData($channel,'Get lost: '.$output->result); fputs($context[0],"PRIVMSG ".$context[1]." :Yes master! \n");
else
fputs($context[0],"PRIVMSG ".$context[1]." :get lost ".$user."\n");
$conn = Connection::getInstance();
$conn->SendData($channel,'Get lost: '.$this->user); */
} }
} }
?> ?>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment