Event Index

The following events are poezio-only events, for Slixmpp events, check out their index.

changing_nick

Triggered when the user changes their nickname on a MUC. The presence can thus be modified before being sent.

conversation_chatstate
  • message: Message received

  • tab: ConversationTab source

Triggered when a chatstate is received in a ConversationTab.

conversation_msg
  • message: Message received

  • tab: ConversationTab source

Triggered when a message is received in a ConversationTab.

conversation_say
  • message: Message that will be sent

  • tab: ConversationTab source

Triggered whenever the user sends a message to a ConversationTab.

conversation_say_after:
  • message: Message that will be sent

  • tab: ConversationTab source

Same thing than conversation_say, but after XHTML generation of the body, if needed. This means you must not insert any colors in the body in the handler, since it may lead to send invalid XML. This hook is less safe than conversation_say and you should probably not need it.

highlight
  • message: Message that was received

  • tab: MucTab source of the event

ignored_private
  • messageMessage received

  • tab: PrivateTab source

Triggered when a private message (that goes in a PrivateTab) is ignored automatically by poezio.

tab is always None, except when a tab has already been

opened.

joining_muc

Triggered when joining a MUC. The presence can thus be modified before being sent.

muc_ban
  • presence: Presence received

  • tab: MucTab source

Triggered when a user from a MucTab gets banned.

muc_chatstate
  • message: Message received

  • tab: MucTab source

Triggered when a chatstate is received in a MucTab.

muc_join
  • presence: Presence received

  • tab: MucTab source

Triggered when a user joins a MucTab

muc_kick
  • presence: Presence received

  • tab: MucTab source

Triggered when a user from a MucTab gets kicked.

muc_msg
  • message: Message received

  • tab: MucTab source

Triggered when a message is received in a MucTab.

muc_nickchange
  • presence: Presence received

  • tab: MucTab source

Triggered when a user in a MucTab changes his nickname.

muc_presence
  • presence: Presence received

  • tab: MucTab source

Triggered when a presence is received from someone in a MucTab.

muc_say
  • message: Message that will be sent

  • tab: MucTab source

Triggered whenever the user sends a message to a MucTab.

muc_say_after
  • message: Message that will be sent

  • tab: MucTab source

Same thing than muc_say, but after XHTML generation of the body, if needed. This means you must not insert any colors in the body in the handler, since it may lead to send invalid XML. This hook is less safe than muc_say and you should probably not need it.

normal_presence

Triggered when a presence is received from a contact.

private_chatstate
  • message: Message received

  • tab: PrivateTab source

Triggered when a chatstate is received in a PrivateTab.

private_msg
  • message: Message received

  • tab: PrivateTab source

Triggered when a message is received in a PrivateTab.

private_say
  • message: Message that will be sent

  • tab: PrivateTab source

Triggered whenever the user sends a message to a PrivateTab.

private_say_after
  • message: Message that will be sent

  • tab: PrivateTab source

Same thing than private_say, but after XHTML generation of the body, if needed. This means you must not insert any colors in the body in the handler, since it may lead to send invalid XML. This hook is less safe than private_say and you should probably not need it.

send_normal_presence

Triggered when poezio sends a new Presence stanza. The presence can thus be modified before being sent.

tab_change
  • old_tab: int Old current tab.

  • new_tab: int New current tab.

Triggered whenever the user switches between tabs.