diff options
author | mathieui <mathieui@mathieui.net> | 2021-02-03 21:04:36 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2021-02-09 19:16:03 +0100 |
commit | 2cfe56bbbe47c9bf8aa87c48324091e90623d43f (patch) | |
tree | 59a426fb8535c76d6a23bff2801849328effa6f2 /poezio/core/completions.py | |
parent | ae0888bd3d6892f3da3ff0d7c3cbb60f61653f6c (diff) | |
download | poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.tar.gz poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.tar.bz2 poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.tar.xz poezio-2cfe56bbbe47c9bf8aa87c48324091e90623d43f.zip |
Remove activity/mood/gaming/tune from poezio core
rationale: probably 0.1% of poezio users have ever used the commands,
and a very small number of users are using the PEP events like that.
It is better to unclutter the poezio source and add it as a plugin,
with less tight coupling.
Diffstat (limited to 'poezio/core/completions.py')
-rw-r--r-- | poezio/core/completions.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/poezio/core/completions.py b/poezio/core/completions.py index 98ca9ba0..88ed57b3 100644 --- a/poezio/core/completions.py +++ b/poezio/core/completions.py @@ -13,7 +13,6 @@ from functools import reduce from slixmpp import JID from poezio import common -from poezio import pep from poezio import tabs from poezio import xdg from poezio.common import safeJID @@ -318,33 +317,6 @@ class CompletionCore: comp = sorted(onlines) + sorted(offlines) return Completion(the_input.new_completion, comp, n, quotify=True) - def activity(self, the_input): - """Completion for /activity""" - n = the_input.get_argument_position(quoted=True) - args = common.shell_split(the_input.text) - if n == 1: - return Completion( - the_input.new_completion, - sorted(pep.ACTIVITIES.keys()), - n, - quotify=True) - elif n == 2: - if args[1] in pep.ACTIVITIES: - l = list(pep.ACTIVITIES[args[1]]) - l.remove('category') - l.sort() - return Completion(the_input.new_completion, l, n, quotify=True) - - def mood(self, the_input): - """Completion for /mood""" - n = the_input.get_argument_position(quoted=True) - if n == 1: - return Completion( - the_input.new_completion, - sorted(pep.MOODS.keys()), - 1, - quotify=True) - def last_activity(self, the_input): """ Completion for /last_activity <jid> |