Method: Cinch::Message#initialize

Defined in:
lib/cinch/message.rb

#initialize(msg, bot) ⇒ Message

Returns a new instance of Message.



84
85
86
87
88
89
90
91
92
# File 'lib/cinch/message.rb', line 84

def initialize(msg, bot)
  @raw     = msg
  @bot     = bot
  @matches = {:ctcp => {}, :action => {}, :other => {}}
  @events  = []
  @time    = Time.now
  @statusmsg_mode = nil
  parse if msg
end