]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/SearchSub/searchsubtrackingcommand.php
plugins onAutoload now only overloads if necessary (extlibs etc.)
[quix0rs-gnu-social.git] / plugins / SearchSub / searchsubtrackingcommand.php
diff --git a/plugins/SearchSub/searchsubtrackingcommand.php b/plugins/SearchSub/searchsubtrackingcommand.php
deleted file mode 100644 (file)
index a404fd4..0000000
+++ /dev/null
@@ -1,31 +0,0 @@
-<?php
-
-class SearchSubTrackingCommand extends Command
-{
-    function handle($channel)
-    {
-        $cur = $this->user;
-        $all = new SearchSub();
-        $all->profile_id = $cur->id;
-        $all->find();
-
-        if ($all->N == 0) {
-            // TRANS: Error text shown a user tries to disable all a search subscriptions with track off command, but has none.
-            $channel->error($cur, _m('You are not tracking any searches.'));
-            return;
-        }
-
-        $list = array();
-        while ($all->fetch()) {
-            $list[] = $all->search;
-        }
-
-        // TRANS: Separator for list of tracked searches.
-        $separator = _m('SEPARATOR','", "');
-
-        // TRANS: Message given having disabled all search subscriptions with 'track off'.
-        // TRANS: %s is a list of searches. Separator default is '", "'.
-        $channel->output($cur, sprintf(_m('You are tracking searches for: "%s".'),
-                                       implode($separator, $list)));
-    }
-}