1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- ; --------------------------------------------------------------- --- -- -
- ; | additional window script for mnet
- ; --------------------------------------------------------------- --- -- -
- ; | Author: Calis
- ; | Version: 0.9
- ; | IRC: #quadaver (Quakenet)
- ; | replace the -quad- with the part your bots sends out (1)
- ; | replace the nicks of the bots if they differ from those (2)
- ; --------------------------------------------------------------- --- -- -
- ;on ^*:TEXT:*-quad-*:#: { ;# <-- here (1)
- ; if ((QuaDev == $nick) || (AQ2_0? iswm $nick) || (Quadaver == $nick)) { ;# <-- and here (2)
- ; set %mnetmsg.1 $1-
- ; if (%mnetmsg.1 != %mnetmsg.2) {
- ; WINDOW -e @mnet
- ; ECHO @mnet $timestamp $1-
- ; /mnetmsgvar
- ; halt
- ; }
- ; elseif (%mnetmsg.1 == %mnetmsg.2) {
- ; halt
- ; }
- ; }
- ;}
- on ^*:TEXT:*:#: {
- if ((QuaDev == $nick) || (AQ2_0? iswm $nick) || (QUADAVER == $nick)) { ;# <-- here (2)
- if (-quad- isin $1-) { ;# <-- here (1)
- set %mnetmsg.1 $1-
- if (%mnetmsg.1 != %mnetmsg.2) {
- WINDOW -e @mnet
- ECHO @mnet $timestamp $1-
- /mnetmsgvar
- halt
- }
- elseif (%mnetmsg.1 == %mnetmsg.2) {
- halt
- }
- }
- elseif (-spam- isin $1-) { ;# <-- here (1)
- set %mnetmsg.1 $1-
- if (%mnetmsg.1 != %mnetmsg.2) {
- WINDOW -e @mnet
- ECHO @mnet $timestamp $1-
- /mnetmsgvar
- halt
- }
- elseif (%mnetmsg.1 == %mnetmsg.2) {
- halt
- }
- }
- elseif (-AQ2- isin $1-) { ;# <-- here (1)
- set %mnetmsg.1 $1-
- if (%mnetmsg.1 != %mnetmsg.2) {
- WINDOW -e @mnet
- ECHO @mnet $timestamp $1-
- /mnetmsgvar
- halt
- }
- elseif (%mnetmsg.1 == %mnetmsg.2) {
- halt
- }
- }
- }
- }
- ALIAS mnetmsgvar {
- set %mnetmsg.2 %mnetmsg.1
- }
- on *:EXIT: {
- unset %mnetmsg.*
- }
|