Method: Cinch::Channel#send
- Defined in:
- lib/cinch/channel.rb
#send(text, notice = false) ⇒ Object Also known as: msg, privmsg
Note:
The aliases msg and privmsg are deprecated and will be
removed in a future version.
411 412 413 414 415 416 417 418 419 420 |
# File 'lib/cinch/channel.rb', line 411 def send(text, notice = false) # TODO deprecate 'notice' argument text = text.to_s if @modes["c"] # Remove all formatting and colors if the channel doesn't # allow colors. text = Cinch::Formatting.unformat(text) end super(text, notice) end |