Module: Fargo::Supports::Chat

Extended by:
ActiveSupport::Concern
Included in:
Client
Defined in:
lib/fargo/supports/chat.rb

Instance Method Summary collapse

Instance Method Details

#messagesObject



11
12
13
# File 'lib/fargo/supports/chat.rb', line 11

def messages
  @public_chats
end

#messages_with(nick) ⇒ Object



15
16
17
# File 'lib/fargo/supports/chat.rb', line 15

def messages_with nick
  @chats[nick]
end

#send_chat(text) ⇒ Object



19
20
21
# File 'lib/fargo/supports/chat.rb', line 19

def send_chat text
  hub.send_data "<#{config.nick}> #{text}|"
end