def strip_color!(string)
      [@@mirc_color, @@rgb_color, @@ecma48_color].each do |pattern|
        string.gsub!(pattern, '')
      end
      # strip cancellation codes too if there are no formatting codes
      string.gsub!(@@normal) if !has_color?(string)
      return string
    end
def strip_color!(string)
      [@@mirc_color, @@rgb_color, @@ecma48_color].each do |pattern|
        string.gsub!(pattern, '')
      end
      # strip cancellation codes too if there are no formatting codes
      string.gsub!(@@normal) if !has_color?(string)
      return string
    end
Strip IRC color codes from a string, modifying it in place.
 @param [String] string The string you want to strip.
 @return [String] A string stripped of all IRC color codes.