summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2012-02-09 17:45:28 +0100
committermathieui <mathieui@mathieui.net>2012-02-09 17:45:28 +0100
commitf76959c78c99044a3f43714ad285178a25498a90 (patch)
treefa2507431830b794a98234e2f7710d6bac17693f
parent383bb02f0bf0a2618de6c196d4056affbfc896d7 (diff)
downloadpoezio-f76959c78c99044a3f43714ad285178a25498a90.tar.gz
poezio-f76959c78c99044a3f43714ad285178a25498a90.tar.bz2
poezio-f76959c78c99044a3f43714ad285178a25498a90.tar.xz
poezio-f76959c78c99044a3f43714ad285178a25498a90.zip
Restrict nick change for gmail users because gmail.com is buggy
-rw-r--r--doc/en/usage.txt2
-rw-r--r--src/tabs.py4
2 files changed, 6 insertions, 0 deletions
diff --git a/doc/en/usage.txt b/doc/en/usage.txt
index 95c25427..4db1d699 100644
--- a/doc/en/usage.txt
+++ b/doc/en/usage.txt
@@ -304,6 +304,8 @@ MultiUserChat tab commands
close the tab. You can specify an optional message if you are still connected.
*/nick <nickname>*:: Change your nickname in the current room.
+ *Except for gmail users* because gmail.com sucks and will do weird things
+ if you change your nickname in a MUC.
*/recolor [random]*:: Re-assign a color to all the participants in the current
room, based on the last time they talked. Use this if the participants
diff --git a/src/tabs.py b/src/tabs.py
index 4cf5c479..19ac06b5 100644
--- a/src/tabs.py
+++ b/src/tabs.py
@@ -545,6 +545,10 @@ class MucTab(ChatTab):
self.commands['configure'] = (self.command_configure, _('Usage: /configure\nConfigure: Configure the current room, through a form.'), None)
self.commands['version'] = (self.command_version, _('Usage: /version <jid or nick>\nVersion: Get the software version of the given JID or nick in room (usually its XMPP client and Operating System).'), self.completion_version)
self.commands['names'] = (self.command_names, _('Usage: /names\nNames: Get the list of the users in the room, and the list of the people assuming the different roles.'), None)
+
+ if self.core.xmpp.boundjid.server == "gmail.com": #gmail sucks
+ del self.commands["nick"]
+
self.resize()
self.update_commands()
self.update_keys()