lib/marvin/command_handler.rb in Sutto-marvin-0.2.2 vs lib/marvin/command_handler.rb in Sutto-marvin-0.2.3

- old
+ new

@@ -39,10 +39,10 @@ return if command.blank? command_name = extract_command_name(command) unless command_name.nil? logger.debug "Command Exists - processing" # Dispatch the command. - self.send(command_name, data.split(" ")) if self.respond_to?(command_name) + self.send(command_name, data.to_s.split(" ")) if self.respond_to?(command_name) end end def extract_command_name(command) prefix_length = self.command_prefix.to_s.length \ No newline at end of file