User:M D N S/quickban.js

/* quick ban script */ function banButton { var banStuff = prompt("Enter the user, time in seconds, and reason, separated by commas", "Stuff goes here"); if (banStuff.length != 0) { var banVars = banStuff.split(","); var cmd = new models.BanCommand({                           userToBan: banVars[0],                            time: parseInt(banVars[1]),                            reason: banVars[2]                    }); mainRoom.socket.socket.send(cmd.xport); }   }    $('Quick Ban ').prependTo('.Rail');