mnetextrawindow.mrc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. ; --------------------------------------------------------------- --- -- -
  2. ; | additional window script for mnet
  3. ; --------------------------------------------------------------- --- -- -
  4. ; | Author: Calis
  5. ; | Version: 0.9
  6. ; | IRC: #quadaver (Quakenet)
  7. ; | replace the -quad- with the part your bots sends out (1)
  8. ; | replace the nicks of the bots if they differ from those (2)
  9. ; --------------------------------------------------------------- --- -- -
  10. ;on ^*:TEXT:*-quad-*:#: { ;# <-- here (1)
  11. ; if ((QuaDev == $nick) || (AQ2_0? iswm $nick) || (Quadaver == $nick)) { ;# <-- and here (2)
  12. ; set %mnetmsg.1 $1-
  13. ; if (%mnetmsg.1 != %mnetmsg.2) {
  14. ; WINDOW -e @mnet
  15. ; ECHO @mnet $timestamp $1-
  16. ; /mnetmsgvar
  17. ; halt
  18. ; }
  19. ; elseif (%mnetmsg.1 == %mnetmsg.2) {
  20. ; halt
  21. ; }
  22. ; }
  23. ;}
  24. on ^*:TEXT:*:#: {
  25. if ((QuaDev == $nick) || (AQ2_0? iswm $nick) || (QUADAVER == $nick)) { ;# <-- here (2)
  26. if (-quad- isin $1-) { ;# <-- here (1)
  27. set %mnetmsg.1 $1-
  28. if (%mnetmsg.1 != %mnetmsg.2) {
  29. WINDOW -e @mnet
  30. ECHO @mnet $timestamp $1-
  31. /mnetmsgvar
  32. halt
  33. }
  34. elseif (%mnetmsg.1 == %mnetmsg.2) {
  35. halt
  36. }
  37. }
  38. elseif (-spam- isin $1-) { ;# <-- here (1)
  39. set %mnetmsg.1 $1-
  40. if (%mnetmsg.1 != %mnetmsg.2) {
  41. WINDOW -e @mnet
  42. ECHO @mnet $timestamp $1-
  43. /mnetmsgvar
  44. halt
  45. }
  46. elseif (%mnetmsg.1 == %mnetmsg.2) {
  47. halt
  48. }
  49. }
  50. elseif (-AQ2- isin $1-) { ;# <-- here (1)
  51. set %mnetmsg.1 $1-
  52. if (%mnetmsg.1 != %mnetmsg.2) {
  53. WINDOW -e @mnet
  54. ECHO @mnet $timestamp $1-
  55. /mnetmsgvar
  56. halt
  57. }
  58. elseif (%mnetmsg.1 == %mnetmsg.2) {
  59. halt
  60. }
  61. }
  62. }
  63. }
  64. ALIAS mnetmsgvar {
  65. set %mnetmsg.2 %mnetmsg.1
  66. }
  67. on *:EXIT: {
  68. unset %mnetmsg.*
  69. }