@plainmessage = BasicUserMessage.strip_formatting(@message)
@message = BasicUserMessage.strip_initial_formatting(@message)
- if target && target == @bot.myself
- @address = true
- end
+ @address = true if source == @bot.myself
end
@ctcp = false
@action = false
- if target == @bot.myself
+ if @address = (target == @bot.myself)
@private = true
- @address = true
@channel = nil
@replyto = source
else
attr_accessor :modes
def initialize(bot, server, source, target, message="")
super(bot, server, source, target, message)
- @address = (source == @bot.myself)
@modes = []
end
attr_reader :whois
def initialize(bot, server, source, target, whois)
super(bot, server, source, target, "")
- @address = (target == @bot.myself)
@whois = whois
end
super(bot, server, source, channel, message)
@channel = channel
# in this case sourcenick is the nick that could be the bot
- @address = (source == @bot.myself)
end
end