Sha256: f7f88addd74a752c8c9258dfbf2b13163645fca5027d34b110a58eb348105506
Contents?: true
Size: 455 Bytes
Versions: 5
Compression:
Stored size: 455 Bytes
Contents
require 'dazeus/event/message' module Dazeus module Event class Command < Message attr_accessor :command, :args, :remainder def post_init super @remainder = if @params.length > 4 then @params[4] else '' end @message = @dazeus.highlightCharacter + @message @message += ' ' + @remainder if @remainder.length > 0 @args = @params[5..-1] @args = [] if @args == nil end end end end
Version data entries
5 entries across 5 versions & 1 rubygems