3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

remove trailing spaces from report reasons

This commit is contained in:
reality 2013-08-05 19:51:38 +00:00
parent bb3d846cad
commit e9c6729894

View File

@ -73,7 +73,7 @@ var report = function(dbot) {
'~report': function(event) {
var channelName = event.input[1],
nick = event.input[2],
reason = event.input[3];
reason = event.input[3].trim();
if(reason.charAt(reason.length - 1) != '.') reason += '.';