diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-02-10 12:54:51 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-02-10 12:54:51 +0100 |
commit | e7418bb8679a05008538273a1488c4742a25c15b (patch) | |
tree | 718249b4773ce94790edb2d4cb5f9e6ab724d659 /src/tabs.py | |
parent | bd1733355b53d8d526dba17327b69df915ce580e (diff) | |
download | poezio-e7418bb8679a05008538273a1488c4742a25c15b.tar.gz poezio-e7418bb8679a05008538273a1488c4742a25c15b.tar.bz2 poezio-e7418bb8679a05008538273a1488c4742a25c15b.tar.xz poezio-e7418bb8679a05008538273a1488c4742a25c15b.zip |
/unignore completion
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index 8f42a0f4..e538c3a9 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -360,7 +360,7 @@ class MucTab(ChatTab): self.key_func['M-y'] = self.scroll_user_list_up # commands self.commands['ignore'] = (self.command_ignore, _("Usage: /ignore <nickname> \nIgnore: Ignore a specified nickname."), None) - self.commands['unignore'] = (self.command_unignore, _("Usage: /unignore <nickname>\nUnignore: Remove the specified nickname from the ignore list."), None) + self.commands['unignore'] = (self.command_unignore, _("Usage: /unignore <nickname>\nUnignore: Remove the specified nickname from the ignore list."), self.completion_unignore) self.commands['kick'] = (self.command_kick, _("Usage: /kick <nick> [reason]\nKick: Kick the user with the specified nickname. You also can give an optional reason."), None) self.commands['topic'] = (self.command_topic, _("Usage: /topic <subject>\nTopic: Change the subject of the room"), self.completion_topic) self.commands['query'] = (self.command_query, _('Usage: /query <nick> [message]\nQuery: Open a private conversation with <nick>. This nick has to be present in the room you\'re currently in. If you specified a message after the nickname, it will immediately be sent to this user'), None) @@ -553,6 +553,9 @@ class MucTab(ChatTab): self.ignores.remove(user) self.core.information(_('%s is now unignored') % nick) + def completion_unignore(self, the_input): + the_input.auto_completion([user.nick for user in self.ignores], ' ') + def resize(self): """ Resize the whole window. i.e. all its sub-windows |