Advertisement
Guest User

ignore

a guest
Aug 1st, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. var i;
  2. var checkignore;
  3. var messagechoice = arg.toLowerCase();
  4. var choices = ['messages','clear','forward'];
  5. switch (messagechoice) {
  6. default:
  7. for(i = 0; i < ignoreusers.length; i++){
  8. checkignore = ignoreusers[i]
  9. if (checkignore == user.id){
  10. this.say(room, "/pm " + user.name + "," + " You are a ignored user!.")
  11. }else{
  12. if (arg.length < 31) {
  13. if (arg) {
  14. var i;
  15. if (tells.length < 10){
  16. tells[tells.length] = user.id + ":" + arg;
  17. this.say(room, "/tell Dragotic" + "," + user.id + ":" + arg);
  18. this.say(room, "/pm " + user.name + "," + " your message has been sent!.")
  19. }else{
  20. this.say(room, '/pm ' + user.name + ',' + ' The maximum limit for a days message has been reached!.')
  21. }
  22. }else{
  23. return this.say(room, "/pm " + user.name + "," + "Please specify a message!.")
  24. }
  25. }else{
  26. return this.say(room, "/pm " + user.name + "," + "The character limit for message is 30! and by the way spaces are counted!.")
  27. }
  28. }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement