mirror of
https://github.com/reality/dbot.git
synced 2024-12-24 03:33:07 +01:00
and trim it
This commit is contained in:
parent
4f4cdea951
commit
a40abd4bbd
@ -155,7 +155,7 @@ var imgur = function(dbot) {
|
||||
'~ri': function(event) {
|
||||
var local = event.user;
|
||||
if(event.params[1]) {
|
||||
local = event.params.splice(1, event.params.length - 1).join(' ');
|
||||
local = event.params.splice(1, event.params.length - 1).join(' ').trim();
|
||||
}
|
||||
this.api.getRandomImage(function(link, slug) {
|
||||
this.api.getImageInfo(slug, function(imgData) {
|
||||
|
Loading…
Reference in New Issue
Block a user