diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/events.py | 3 | ||||
-rw-r--r-- | src/tabs.py | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/src/events.py b/src/events.py index 3a8e4d08..e94acb80 100644 --- a/src/events.py +++ b/src/events.py @@ -22,8 +22,11 @@ class EventHandler(object): self.events = { 'highlight': [], 'muc_say': [], + 'muc_say_after': [], 'conversation_say': [], + 'conversation_say_after': [], 'private_say': [], + 'private_say_after': [], 'conversation_msg': [], 'private_msg': [], 'muc_msg': [], diff --git a/src/tabs.py b/src/tabs.py index 02678e7e..d7f1323b 100644 --- a/src/tabs.py +++ b/src/tabs.py @@ -771,6 +771,7 @@ class MucTab(ChatTab): if config.get('send_chat_states', 'true') == 'true' and self.remote_wants_chatstates is not False: msg['chat_state'] = needed self.cancel_paused_delay() + self.core.events.trigger('muc_say_after', msg, self) msg.send() self.chat_state = needed @@ -1268,6 +1269,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_after', msg, self) msg.send() self.cancel_paused_delay() self.text_win.refresh() @@ -1958,6 +1960,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_after', msg, self) msg.send() logger.log_message(JID(self.get_name()).bare, self.core.own_nick, line) self.cancel_paused_delay() |