Advertisement
Guest User

Untitled

a guest
Nov 14th, 2014
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. on $*:text:/^!addcom=mod !?(\S+)/iS:#: {
  2. if ($read(modlist.txt,nw,$nick)) {
  3. writeini modcommands.ini # $regml(1) $3-
  4. var %text $read(modcommands.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 commandsresonse.txt %line
  13. msg # $nick - The command $$2 has been added.
  14. }
  15. }
  16. on $*:text:/^!delcom=mod !?(\S+)/iS:#:{
  17. if ($read(modlist.txt,nw,$nick)) {
  18. remini modcommands.ini # $regml(1)
  19. var %text $read(modcommands.txt,1)
  20. if %text != $null {
  21. var %line $remove(%text,! $+ $regml(1))
  22. }
  23. write -l1 commandsresonse.txt %line
  24. msg # $nick - The command $$2 has been removed.
  25. }
  26. }
  27.  
  28. on $*:text:/^!editcom=mod !?(\S+)/iS:#:{
  29. if ($read(modlist.txt,nw,$nick)) {
  30. writeini modcommands.ini # $regml(1) $$3-
  31. msg $chan $nick - The command $2 has been updated.
  32. }
  33. }
  34. on $*:text:/^!(\S+)/:#:{
  35. if ($read(modlist.txt,nw,$nick)) {
  36. if ((%floodcom) || ($($+(%,floodcom.,$2),2))) { return }
  37. set -u3 %floodcom On
  38. set -u3 %floodcom. $+ $nick On
  39. if ($readini(modcommands.ini,n,#,$regml(1))) msg # $v1
  40. if ($readini(nonmodscommands.ini,n,#,$regml(1))) msg # $v1
  41. }
  42. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement