summaryrefslogtreecommitdiff
path: root/lib/channel.php
diff options
context:
space:
mode:
authorCraig Andrews <candrews@integralblue.com>2010-01-23 01:25:27 -0500
committerCraig Andrews <candrews@integralblue.com>2010-01-27 13:48:35 -0500
commite9995b0f6ab0788162e22c996e5ee0af416dd519 (patch)
tree10b6eda02028c3320d0c7aaef88570f3ac862041 /lib/channel.php
parent5224c7d6c263f078c3628650ff2b4b706862307c (diff)
Create IM plugin, Pluginize XMPP, Create AIM plugin
Diffstat (limited to 'lib/channel.php')
-rw-r--r--lib/channel.php57
1 files changed, 0 insertions, 57 deletions
diff --git a/lib/channel.php b/lib/channel.php
index 3cd168786..05437b4e9 100644
--- a/lib/channel.php
+++ b/lib/channel.php
@@ -47,63 +47,6 @@ class Channel
}
}
-class XMPPChannel extends Channel
-{
-
- var $conn = null;
-
- function source()
- {
- return 'xmpp';
- }
-
- function __construct($conn)
- {
- $this->conn = $conn;
- }
-
- function on($user)
- {
- return $this->set_notify($user, 1);
- }
-
- function off($user)
- {
- return $this->set_notify($user, 0);
- }
-
- function output($user, $text)
- {
- $text = '['.common_config('site', 'name') . '] ' . $text;
- jabber_send_message($user->jabber, $text);
- }
-
- function error($user, $text)
- {
- $text = '['.common_config('site', 'name') . '] ' . $text;
- jabber_send_message($user->jabber, $text);
- }
-
- function set_notify(&$user, $notify)
- {
- $orig = clone($user);
- $user->jabbernotify = $notify;
- $result = $user->update($orig);
- if (!$result) {
- $last_error = &PEAR::getStaticProperty('DB_DataObject','lastError');
- common_log(LOG_ERR,
- 'Could not set notify flag to ' . $notify .
- ' for user ' . common_log_objstring($user) .
- ': ' . $last_error->message);
- return false;
- } else {
- common_log(LOG_INFO,
- 'User ' . $user->nickname . ' set notify flag to ' . $notify);
- return true;
- }
- }
-}
-
class WebChannel extends Channel
{
var $out = null;