From 687a2b70a1258f7e9129ecf38c9b91f65d3a6ec8 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 15 Apr 2014 04:14:46 -0700 Subject: Fix memory leaks (don't intern user input). --- module.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'module.rb') diff --git a/module.rb b/module.rb index 192aea4..082fc83 100644 --- a/module.rb +++ b/module.rb @@ -11,7 +11,7 @@ module Dinobot def call(user, channel, message) command, argument = message.split(' ', 3)[1..2] - if @commands.include?(command.intern) + if @commands.map { |x| x.to_s }.include?(command) send(command, user, channel, argument) end end -- cgit v1.2.3-70-g09d2