mIRC Home    About    Download    Register    News    Help

Print Thread
$decode troubles #104241 01/12/04 04:12 AM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
im having problems, trying to stop the "exploit" stuff used with $decode(), but im having problems getting a simple on text event working.. any ideas? (its on *:text:*$decode*:*:haltdef)


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: $decode troubles #104242 01/12/04 04:19 AM
Joined: Nov 2003
Posts: 257
A
alkahol1k Offline
Fjord artisan
Offline
Fjord artisan
A
Joined: Nov 2003
Posts: 257
well that depends what exactly you want. If its a query message you want to stop you would use on open. But in channel on text is the right event. I'd use something like this

on ^*:Text:*:#: {
if ($decode isin $strip($1-)) {
.halt
}
}

on *:OPEN:*: {
if ( $decode isin $1- ) {
.ignore -u5 $nick 2
.close -m $nick
.echo -a (query ignored) $colon $1-
.halt
}
}

Last edited by alkahol1k; 01/12/04 04:21 AM.
Re: $decode troubles #104243 01/12/04 04:30 AM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
i cant seem to get it working


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: $decode troubles #104244 01/12/04 04:54 AM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
On ^*:TEXT:*$Decode*:*: { echo -s Ignored $Nick $+ 's message in $iif(#,#,Query) | halt }
On ^*:OPEN:?:*$Decode*: { echo -s Ignored $Nick $+ 's message in Query | halt }


- Relinsquish
Re: $decode troubles #104245 01/12/04 05:03 AM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
smile THAT works. alright. now what would i do if i wanted to strip the $decode(*) out of the messages instead of ignoring the messages?


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: $decode troubles #104246 01/12/04 09:27 PM
Joined: Mar 2004
Posts: 175
Relinsquish Offline
Vogon poet
Offline
Vogon poet
Joined: Mar 2004
Posts: 175
Code:
On ^*:TEXT:*$Decode*:*: {
var %a = 1
While ($Wildtok($1-,$ $+ Decode(*),1,32)) {
tokenize 32 $Reptok($1-,$v1,$($v1,2),1,32)
inc %a
}
echo -it $Target $+(<,$Nick,>) $1-
halt
}


- Relinsquish
Re: $decode troubles #104247 02/12/04 04:03 AM
Joined: Nov 2003
Posts: 2,327
T
tidy_trax Offline
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Code:
on ^*:text:*$decode(*)*:#:{
  var %a, %b = $regsub($1-,/\$decode\(.*\)/g,,%a)
  echo -bcflirt norm $chan %a
  haltdef
}


New username: hixxy