summaryrefslogtreecommitdiff
path: root/classes/Channel.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-04 13:34:27 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-04 13:34:27 -0400
commit4d30c534d97a4bceddb8e426cb850196df7713b2 (patch)
treeb4c72858298ecc473b504d166b4da02e2a2dc4ec /classes/Channel.php
parent6406d5f8efe4546c8a864ee2cf91679a9a1b8494 (diff)
different message source per command channel
darcs-hash:20081004173427-5ed1f-2a818562f5aa7143b68a0eab3e9f26cd02926c0b.gz
Diffstat (limited to 'classes/Channel.php')
-rw-r--r--classes/Channel.php16
1 files changed, 16 insertions, 0 deletions
diff --git a/classes/Channel.php b/classes/Channel.php
index ee0e57c89..a0dc71538 100644
--- a/classes/Channel.php
+++ b/classes/Channel.php
@@ -36,12 +36,20 @@ class Channel {
function error($user, $text) {
return false;
}
+
+ function source() {
+ return NULL;
+ }
}
class XMPPChannel extends Channel {
var $conn = NULL;
+ function source() {
+ return 'xmpp';
+ }
+
function __construct($conn) {
$this->conn = $conn;
}
@@ -85,6 +93,10 @@ class XMPPChannel extends Channel {
class WebChannel extends Channel {
+ function source() {
+ return 'web';
+ }
+
function on($user) {
return false;
}
@@ -110,6 +122,10 @@ class WebChannel extends Channel {
class MailChannel extends Channel {
var $addr = NULL;
+
+ function source() {
+ return 'mail';
+ }
function __construct($addr=NULL) {
$this->addr = $addr;