Commit 9ab0d250 authored by mathieui's avatar mathieui

fix: uniformize command_say signature

parent 71ee1b85
......@@ -808,7 +808,7 @@ class ChatTab(Tab):
self.state = 'scrolled'
@command_args_parser.raw
def command_say(self, line, correct=False):
def command_say(self, line: str, attention: bool = False, correct: bool = False):
pass
def goto_build_lines(self, new_date):
......@@ -1063,7 +1063,7 @@ class OneToOneTab(ChatTab):
msg.send()
@command_args_parser.raw
def command_say(self, line, correct=False, attention=False):
def command_say(self, line: str, attention: bool = False, correct: bool = False):
pass
@command_args_parser.ignored
......
......@@ -104,7 +104,7 @@ class ConversationTab(OneToOneTab):
@refresh_wrapper.always
@command_args_parser.raw
def command_say(self, line, attention=False, correct=False):
def command_say(self, line: str, attention: bool = False, correct: bool = False):
msg = self.core.xmpp.make_message(
mto=self.get_dest_jid(),
mfrom=self.core.xmpp.boundjid
......
......@@ -1709,7 +1709,7 @@ class MucTab(ChatTab):
return None
@command_args_parser.raw
def command_say(self, line: str, correct: bool = False) -> None:
def command_say(self, line: str, attention: bool = False, correct: bool = False):
"""
/say <message>
Or normal input + enter
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment