Skip to content
Find file
3929b57
13 lines (11 sloc) 401 Bytes
<?php
require_once("lib/class.baselistener.php");
class Listener extends BaseListener {
function on_message($user, $message) {
if($user['name'] != $this->talker->user['name']) $this->talker->send_message("We got a message from {$user['name']}: $message");
}
function on_join($user) {
$this->talker->send_message("Heya {$user['name']}, so nice of you to grace us with your presence");
}
}
?>
Jump to Line
Something went wrong with that request. Please try again.