Advertisement
Guest User

Untitled

a guest
Nov 14th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.25 KB | None | 0 0
  1. on $*:text:/^!addcom !?(\S+)/iS:#: {
  2. if ($read(modlist.txt,nw,$nick)) {
  3. writeini nonmodscommands.ini # $regml(1) $3-
  4. var %text $read(nonmodscommands.txt,1)
  5. if %text == $null {
  6. var %line Commands List: ! $+ $regml(1) $+ ,
  7. }
  8. else {
  9. var %line %text ! $+ $regml(1)
  10. }
  11.  
  12. write -l1 nonmodsresponse.txt %line
  13. msg # $nick - The command $$2 has been added.
  14. }
  15. }
  16. on $*:text:/^!delcom !?(\S+)/iS:#:{
  17. if ($read(modlist.txt,nw,$nick)) {
  18. remini nonmodscommands.ini # $regml(1)
  19. var %text $read(nonmodscommands.txt,1)
  20. if %text != $null {
  21. var %line $remove(%text,! $+ $regml(1))
  22. }
  23. write -l1 nonmodsresponse.txt %line
  24. msg # $nick - The command $$2 has been removed.
  25. }
  26. }
  27.  
  28. on $*:text:/^!editcom !?(\S+)/iS:#:{
  29. if ($read(modlist.txt,nw,$nick)) {
  30. writeini nonmodscommands.ini # $regml(1) $$3-
  31. msg $chan $nick - The command $2 has been updated.
  32. }
  33. Else msg # Sorry $nick - That command does not exist.
  34. }
  35.  
  36. on $*:text:/^!(\S+)/:#:{
  37. if ($read(modlist.txt,nw,$nick)) { return }
  38. if ((%floodnonmods) || ($($+(%,floodnonmods.,$2),2))) { return }
  39. set -u5 %floodnonmods On
  40. set -u5 %floodnonmods. $+ $nick On
  41. if ($readini(nonmodscommands.ini,n,#,$regml(1))) msg # $v1
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement