modify /clear command in groupchats so that it also reset color assignment. Fixes #7022
This commit is contained in:
parent
655e523247
commit
f95e45d457
|
@ -46,11 +46,6 @@ class StandardCommonCommands(CommandContainer):
|
||||||
AUTOMATIC = True
|
AUTOMATIC = True
|
||||||
HOSTS = ChatCommands, PrivateChatCommands, GroupChatCommands
|
HOSTS = ChatCommands, PrivateChatCommands, GroupChatCommands
|
||||||
|
|
||||||
@command
|
|
||||||
@doc(_("Clear the text window"))
|
|
||||||
def clear(self):
|
|
||||||
self.conv_textview.clear()
|
|
||||||
|
|
||||||
@command
|
@command
|
||||||
@doc(_("Hide the chat buttons"))
|
@doc(_("Hide the chat buttons"))
|
||||||
def compact(self):
|
def compact(self):
|
||||||
|
@ -168,6 +163,11 @@ class StandardCommonChatCommands(CommandContainer):
|
||||||
AUTOMATIC = True
|
AUTOMATIC = True
|
||||||
HOSTS = ChatCommands, PrivateChatCommands
|
HOSTS = ChatCommands, PrivateChatCommands
|
||||||
|
|
||||||
|
@command
|
||||||
|
@doc(_("Clear the text window"))
|
||||||
|
def clear(self):
|
||||||
|
self.conv_textview.clear()
|
||||||
|
|
||||||
@command
|
@command
|
||||||
@doc(_("Toggle the GPG encryption"))
|
@doc(_("Toggle the GPG encryption"))
|
||||||
def gpg(self):
|
def gpg(self):
|
||||||
|
@ -240,6 +240,13 @@ class StandardGroupChatCommands(CommandContainer):
|
||||||
AUTOMATIC = True
|
AUTOMATIC = True
|
||||||
HOSTS = GroupChatCommands,
|
HOSTS = GroupChatCommands,
|
||||||
|
|
||||||
|
@command
|
||||||
|
@doc(_("Clear the text window"))
|
||||||
|
def clear(self):
|
||||||
|
self.conv_textview.clear()
|
||||||
|
self.gc_count_nicknames_colors = -1
|
||||||
|
self.gc_custom_colors = {}
|
||||||
|
|
||||||
@command(raw=True)
|
@command(raw=True)
|
||||||
@doc(_("Change your nickname in a group chat"))
|
@doc(_("Change your nickname in a group chat"))
|
||||||
def nick(self, new_nick):
|
def nick(self, new_nick):
|
||||||
|
|
Loading…
Reference in New Issue