Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var i;
- var checkignore;
- var messagechoice = arg.toLowerCase();
- var choices = ['messages','clear','forward'];
- switch (messagechoice) {
- default:
- for(i = 0; i < ignoreusers.length; i++){
- checkignore = ignoreusers[i]
- if (checkignore == user.id){
- this.say(room, "/pm " + user.name + "," + " You are a ignored user!.")
- }else{
- if (arg.length < 31) {
- if (arg) {
- var i;
- if (tells.length < 10){
- tells[tells.length] = user.id + ":" + arg;
- this.say(room, "/tell Dragotic" + "," + user.id + ":" + arg);
- this.say(room, "/pm " + user.name + "," + " your message has been sent!.")
- }else{
- this.say(room, '/pm ' + user.name + ',' + ' The maximum limit for a days message has been reached!.')
- }
- }else{
- return this.say(room, "/pm " + user.name + "," + "Please specify a message!.")
- }
- }else{
- return this.say(room, "/pm " + user.name + "," + "The character limit for message is 30! and by the way spaces are counted!.")
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement