User:Jihye/chat.js

/* Ban users */ function banUserButton { var banuser = prompt('Please enter the name of the user you want to ban. You can kick chat moderators and administrators.',''); if (banuser.length != 0) { mainRoom.ban({name:banuser}); } } $('Ban ').prependTo('.Rail'); /* Kick users */ function kickUserButton { var kickuser = prompt('Please enter the name of the user you want to kick. You can kick chat moderators and administrators.',''); if (kickuser.length != 0) { mainRoom.kick({name:kickuser}); } }