Class: Irc::NickMessage

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

Overview

class to pass IRC Nick changes in. @message contains the old nickame,

Instance Attribute Summary collapse

Attributes inherited from BasicUserMessage

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

Instance Method Summary collapse

Methods inherited from BasicUserMessage

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

Constructor Details

#initialize(bot, server, source, oldnick, newnick) ⇒ NickMessage

Returns a new instance of NickMessage.



519
520
521
522
# File 'lib/rbot/message.rb', line 519

def initialize(bot, server, source, oldnick, newnick)
  super(bot, server, source, oldnick, newnick)
  @is_on = []
end

Instance Attribute Details

#is_onObject

Returns the value of attribute is_on.



518
519
520
# File 'lib/rbot/message.rb', line 518

def is_on
  @is_on
end

Instance Method Details

#inspectObject



532
533
534
535
536
# File 'lib/rbot/message.rb', line 532

def inspect
  fields = ' old=' << oldnick
  fields << ' new=' << newnick
  super(fields)
end

#newnickObject



528
529
530
# File 'lib/rbot/message.rb', line 528

def newnick
  return @message
end

#oldnickObject



524
525
526
# File 'lib/rbot/message.rb', line 524

def oldnick
  return @target
end