summaryrefslogtreecommitdiff
path: root/scripts/jabberqueuehandler.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-06-22 16:48:04 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-06-22 16:48:04 -0700
commit3fc2cfb7f81cca483be7255e20245c8fea2fe0d8 (patch)
treea6cc0881b4b6af69523fb88822f145c1ce7e02d9 /scripts/jabberqueuehandler.php
parent010d168aaa908073d03be66259042f921dfb861e (diff)
fix have_options arguments
Diffstat (limited to 'scripts/jabberqueuehandler.php')
-rwxr-xr-xscripts/jabberqueuehandler.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/scripts/jabberqueuehandler.php b/scripts/jabberqueuehandler.php
index be0f187a9..a44993236 100755
--- a/scripts/jabberqueuehandler.php
+++ b/scripts/jabberqueuehandler.php
@@ -20,13 +20,13 @@
define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
-$shortoptions = 'r';
-$longoptions = array('resource');
+$shortoptions = 'r::';
+$longoptions = array('resource::');
$helptext = <<<END_OF_JABBER_HELP
Daemon script for pushing new notices to Jabber users.
- -r --resource Jabber Resource ID
+ -r --resource Jabber Resource ID (default to config)
END_OF_JABBER_HELP;
@@ -63,8 +63,8 @@ if (common_config('xmpp','enabled')==false) {
exit();
}
-if (have_option('-r')) {
- $resource = get_option_value('-r');
+if (have_option('r')) {
+ $resource = get_option_value('r');
} else if (have_option('--resource')) {
$resource = get_option_value('--resource');
} else if (count($args) > 0) {