20040726_mnetextrawindow.mrc 879 B

1234567891011121314151617181920212223242526272829303132
  1. ; --------------------------------------------------------------
  2. ; | additional window script for mnet
  3. ; --------------------------------------------------------------
  4. ; | Author: Calis
  5. ; | Version: 1.0
  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)) { ; <-- and here (2)
  12. set %mnetmsg.1 $1-
  13. if (%mnetmsg.1 != %mnetmsg.2) {
  14. WINDOW -e @mnet
  15. ECHO @mnet $timestamp < $+ $nick $+ > $1-
  16. /mnetmsgvar
  17. halt
  18. }
  19. elseif (%mnetmsg.1 == %mnetmsg.2) {
  20. halt
  21. }
  22. }
  23. }
  24. ALIAS mnetmsgvar {
  25. set %mnetmsg.2 %mnetmsg.1
  26. }
  27. on *:EXIT: {
  28. unset %mnetmsg.*
  29. }