Closed Mon-Ouie closed 9 years ago
Hi Mon-Ouie,
Do you have a code example to test ?
I'll get to the issue soon.
@rsommerard : Let's say you have a plugin that uses something like this:
def execute(m, code)
# unsafe, but that's not the point.
m.reply eval(code).inspect
end
Since Ruby allows for things like % foo
, the plugin will fail on valid code because of that.
Hey,
Sometimes trailing whitespace in messages matters. I'm not sure why but parameters get stripped (https://github.com/cinchrb/cinch/blame/master/lib/cinch/message.rb#L229). Removing that line fixes the issue.