mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 22:39:26 +01:00
remove trailing spaces from report reasons
This commit is contained in:
parent
bb3d846cad
commit
e9c6729894
@ -73,7 +73,7 @@ var report = function(dbot) {
|
|||||||
'~report': function(event) {
|
'~report': function(event) {
|
||||||
var channelName = event.input[1],
|
var channelName = event.input[1],
|
||||||
nick = event.input[2],
|
nick = event.input[2],
|
||||||
reason = event.input[3];
|
reason = event.input[3].trim();
|
||||||
|
|
||||||
if(reason.charAt(reason.length - 1) != '.') reason += '.';
|
if(reason.charAt(reason.length - 1) != '.') reason += '.';
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user