; additional window script for mnet technology ; Copyright (C) 2004 Nils Mause ; ; This program is free software; you can redistribute it and/or ; modify it under the terms of the GNU General Public License ; as published by the Free Software Foundation; either version 2 ; of the License, or (at your option) any later version. ; ; This program is distributed in the hope that it will be useful, ; but WITHOUT ANY WARRANTY; without even the implied warranty of ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; GNU General Public License for more details. ; ; You should have received a copy of the GNU General Public License ; along with this program; if not, write to the Free Software ; Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA ; changelog ; ; 2004-10-21 ; the script is released as GPL ; ; 2004-10-22 ; using regex instead of ?? (better "finetuning") ; ; 2004-10-24 ; no self repeating messages, f.ex. if one is colored or bold and the other is "normal" ; --------------------------------------------------------------- --- -- - ; | Author: Calis ; | Version: 1.02 ; | IRC: #quadaver #messagenet (Quakenet) ; | e-mail: calis@quadaver.net ; | any feedback is appreciated ; | replace the -spam- with the part your bot always sends out (1) ; | or add new parts with (xxx isin $1-) at (1) but don't forget the || , they mean or ; --------------------------------------------------------------- --- -- - on ^*:TEXT:*:#: { if ( ( $regex( $nick, AQ2_[0-9][0-9] ) == 1) || ( $regex( $nick, p[0-9]ca ) == 1) || (QUADAVER == $nick) ) { if ((-spam- isin $1-) || (-AQ2- isin $1-) || (-UrT- isin $1-)) { ;# <-- here (1) set %c_mnet.msg.1 $strip( $1- , buc ) if ( $strip( %c_mnet.msg.1 , buc ) != $strip( %c_mnet.msg.2 , buc ) ) { WINDOW @mnet ECHO @mnet $timestamp $network $1- /mnetmsgvar halt } elseif ( $strip( %c_mnet.msg.1 , buc ) == $strip( %c_mnet.msg.2 , buc ) ) { halt } } } } ALIAS mnetmsgvar { set %c_mnet.msg.2 $strip( %c_mnet.msg.1 , buc ) } on *:EXIT: { unset %c_mnet.*