summaryrefslogtreecommitdiff
path: root/src/tabs.py
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-05-21 02:14:25 +0200
committermathieui <mathieui@mathieui.net>2012-05-21 02:14:25 +0200
commit0af1c7fe9a03be34e14ae8ecc332f6d1fa168511 (patch)
tree845d50087b964486c1274cbecf3ebda30a21de0f /src/tabs.py
parent837b46d68b10f5c6e9cc80e07e33fd025b51634b (diff)
downloadpoezio-0af1c7fe9a03be34e14ae8ecc332f6d1fa168511.tar.gz
poezio-0af1c7fe9a03be34e14ae8ecc332f6d1fa168511.tar.bz2
poezio-0af1c7fe9a03be34e14ae8ecc332f6d1fa168511.tar.xz
poezio-0af1c7fe9a03be34e14ae8ecc332f6d1fa168511.zip
Docstrings, and small cleanup
Diffstat (limited to 'src/tabs.py')
-rw-r--r--src/tabs.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py
index 4e1c5141..1b5c81e2 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -763,6 +763,7 @@ class MucTab(ChatTab):
self.core.close_tab()
def command_cycle(self, arg):
+ """/cycle [reason]"""
if self.joined:
muc.leave_groupchat(self.core.xmpp, self.get_name(), self.own_nick, arg)
self.disconnect()
@@ -897,7 +898,6 @@ class MucTab(ChatTab):
color_other = get_theme().COLOR_USER_NONE[0]
color_moderator = get_theme().COLOR_USER_MODERATOR[0]
color_participant = get_theme().COLOR_USER_PARTICIPANT[0]
- color_information = get_theme().COLOR_INFORMATION_TEXT[0]
visitors, moderators, participants, others = [], [], [], []
aff = {
'owner': lambda: get_theme().CHAR_AFFILIATION_OWNER,
@@ -940,6 +940,7 @@ class MucTab(ChatTab):
return the_input.auto_completion([current_topic], '', quotify=False)
def completion_quoted(self, the_input):
+ """Nick completion, but with quotes"""
compare_users = lambda x: x.last_talked
word_list = [user.nick for user in sorted(self.users, key=compare_users, reverse=True)\
if user.nick != self.own_nick]
@@ -1020,6 +1021,10 @@ class MucTab(ChatTab):
self.core.information('Could not set affiliation', 'Error')
def command_say(self, line):
+ """
+ /say <message>
+ Or normal input + enter
+ """
needed = 'inactive' if self.inactive else 'active'
msg = self.core.xmpp.make_message(self.get_name())
msg['type'] = 'groupchat'