Sha256: 9f11fb6872f058932682f66a90a863c58284fcd236dc12333bd3d83555e4ab74

Contents?: true

Size: 256 Bytes

Versions: 1

Compression:

Stored size: 256 Bytes

Contents

class Jabber::Message
  attr_accessor :reply_to

  def to_me?
   !!( body =~ /(^|\s)@#{Zoe.jid.nick}(\s|$)/i || from.strip.to_s == reply_to.strip.to_s)
  end
end

class Jabber::Roster::Helper::RosterItem
  def nick
    attributes['mention_name']
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zoe-0.1.0 lib/zoe/jabber.rb