From 592d4fa3008d6e758897b6486b25468a558c5a68 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Wed, 23 Nov 2011 09:09:15 +0100 Subject: Plugin API: add a method to put text in the input. --- src/core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/core.py b/src/core.py index 7f578bd2..0b1755b1 100644 --- a/src/core.py +++ b/src/core.py @@ -1918,3 +1918,9 @@ class Core(object): if not isinstance(self.current_tab(), tabs.ChatTab): return None return self.current_tab().get_conversation_messages() + + def insert_input_text(self, text): + """ + Insert the given text into the current input + """ + self.do_command(text, True) -- cgit v1.2.3