]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - scripts/pingqueuehandler.php
remove dead code for handling direct messages, now done with commands
[quix0rs-gnu-social.git] / scripts / pingqueuehandler.php
old mode 100644 (file)
new mode 100755 (executable)
index 1bde4bc..c92337e
@@ -1,8 +1,8 @@
 #!/usr/bin/env php
 <?php
 /*
- * Laconica - a distributed open-source microblogging tool
- * Copyright (C) 2008, 2009, Control Yourself, Inc.
+ * StatusNet - the distributed open-source microblogging tool
+ * Copyright (C) 2008, 2009, StatusNet, Inc.
  *
  * This program is free software: you can redistribute it and/or modify
  * it under the terms of the GNU Affero General Public License as published by
@@ -20,8 +20,8 @@
 
 define('INSTALLDIR', realpath(dirname(__FILE__) . '/..'));
 
-$shortoptions = 'i';
-$longoptions = array('id');
+$shortoptions = 'i::';
+$longoptions = array('id::');
 
 $helptext = <<<END_OF_PING_HELP
 Daemon script for pushing new notices to ping servers.
@@ -54,8 +54,8 @@ class PingQueueHandler extends QueueHandler {
        }
 }
 
-if (have_option('-i')) {
-    $id = get_option_value('-i');
+if (have_option('i')) {
+    $id = get_option_value('i');
 } else if (have_option('--id')) {
     $id = get_option_value('--id');
 } else if (count($args) > 0) {