Class: Irc::PrivMessage

Inherits:
UserMessage show all
Defined in:
lib/rbot/message.rb

Overview

class to manage IRC PRIVMSGs

Instance Attribute Summary

Attributes inherited from UserMessage

#action, #channel, #ctcp, #params, #plugin, #replyto

Attributes inherited from BasicUserMessage

#bot, #ignored, #in_thread, #logmessage, #message, #plainmessage, #replied, #server, #source, #target, #time

Instance Method Summary collapse

Methods inherited from UserMessage

#act, #action?, #ctcp_reply, #inspect, #nickokay, #nickreply, #nickreply!, #notify, #okay, #plainokay, #plainreply, #private?, #public?, #reply

Methods inherited from BasicUserMessage

#address?, #botuser, #identified?, #inspect, #parse_channel_list, #prefixed?, #recurse_depth, #recurse_depth=, #sourceaddress, #sourcenick, strip_formatting, strip_initial_formatting, stripcolour

Constructor Details

#initialize(bot, server, source, target, message, opts = {}) ⇒ PrivMessage

Returns a new instance of PrivMessage.



510
511
512
513
# File 'lib/rbot/message.rb', line 510

def initialize(bot, server, source, target, message, opts={})
  @msg_wants_id = opts[:handle_id]
  super(bot, server, source, target, message)
end