class Pipio::Event

Pidgin does not have Events, but Adium does. Pidgin mostly uses system messages to display what Adium calls events. These include sending a file, starting a Direct IM connection, or an error in chat.

Constants

IGNORE

Adium ignores SN/alias changes.

LIB_PURPLE

All of event_type libPurple.

MAP

Each key maps to an event_type string. The keys will be matched against a line of chat and the partner’s alias will be in regex group 1, IF the alias is matched.

Attributes

event_type[R]

Public Class Methods

new(sender_screen_name, time, sender_alias, body, event_type) click to toggle source
Calls superclass method
# File lib/pipio/messages/event.rb, line 56
def initialize(sender_screen_name, time, sender_alias, body, event_type)
  super(sender_screen_name, time, sender_alias, body)
  @event_type = event_type
end

Public Instance Methods

to_s() click to toggle source
# File lib/pipio/messages/event.rb, line 63
def to_s
  %(<event type="#{@event_type}" sender="#{@sender_screen_name}" time="#{adium_formatted_time}" alias="#{@sender_alias}">#{@styled_body}</event>)
end