summaryrefslogtreecommitdiff
path: root/scripts/publicqueuehandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/publicqueuehandler.php')
-rwxr-xr-xscripts/publicqueuehandler.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/scripts/publicqueuehandler.php b/scripts/publicqueuehandler.php
index b0fa22d43..7e09454d1 100755
--- a/scripts/publicqueuehandler.php
+++ b/scripts/publicqueuehandler.php
@@ -27,6 +27,11 @@ if (isset($_SERVER) && array_key_exists('REQUEST_METHOD', $_SERVER)) {
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
define('LACONICA', true);
+// Preset the server at the command line
+
+$server = ($argc > 2) ? $argv[2] : null;
+$path = ($argc > 3) ? $argv[3] : null;
+
require_once(INSTALLDIR . '/lib/common.php');
require_once(INSTALLDIR . '/lib/jabber.php');
require_once(INSTALLDIR . '/lib/xmppqueuehandler.php');
@@ -35,12 +40,12 @@ set_error_handler('common_error_handler');
class PublicQueueHandler extends XmppQueueHandler
{
-
+
function transport()
{
return 'public';
}
-
+
function handle_notice($notice)
{
try {