Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.401 kb
<?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.