diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-06 23:46:00 +0100 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2011-11-06 23:46:00 +0100 |
commit | 961cf5df8548ec0985f2755d21af933d8c023ee4 (patch) | |
tree | 5e80b19af671320f777a65812c7404bbcad2fe07 /src/tabs.py | |
parent | 840acd3bd4dcee91ca34c5b4e4c89ce5e78a56b4 (diff) | |
download | poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.tar.gz poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.tar.bz2 poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.tar.xz poezio-961cf5df8548ec0985f2755d21af933d8c023ee4.zip |
New type of events to be used with the plugins
Diffstat (limited to 'src/tabs.py')
-rw-r--r-- | src/tabs.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tabs.py b/src/tabs.py index 7e6c5dd2..79be7d58 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -323,7 +323,6 @@ class ChatTab(Tab): if not self.execute_command(clean_text): if txt.startswith('//'): txt = txt[1:] - self.core.run_event('enter', line=txt) self.command_say(txt) self.cancel_paused_delay() @@ -723,6 +722,7 @@ class MucTab(ChatTab): msg['xhtml_im'] = xhtml.poezio_colors_to_html(line) if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates is not False: msg['chat_state'] = needed + self.core.events.trigger('muc_say', msg) self.cancel_paused_delay() msg.send() self.chat_state = needed @@ -1216,6 +1216,7 @@ class PrivateTab(ChatTab): if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates is not False: needed = 'inactive' if self.core.status.show in ('xa', 'away') else 'active' msg['chat_state'] = needed + self.core.events.trigger('private_say', msg) msg.send() self.core.add_message_to_text_buffer(self._text_buffer, line, None, self.core.own_nick or self.own_nick) self.cancel_paused_delay() @@ -1879,6 +1880,7 @@ class ConversationTab(ChatTab): if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates is not False: needed = 'inactive' if self.core.status.show in ('xa', 'away') else 'active' msg['chat_state'] = needed + self.core.events.trigger('conversation_say', msg) msg.send() self.core.add_message_to_text_buffer(self._text_buffer, line, None, self.core.own_nick) logger.log_message(JID(self.get_name()).bare, self.core.own_nick, line) |