mIRC Home    About    Download    Register    News    Help

Topic Options
#104241 - 01/12/04 04:12 AM $decode troubles
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
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

Top
#104242 - 01/12/04 04:19 AM Re: $decode troubles
alkahol1k Offline
Fjord artisan

Registered: 22/11/03
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
}
}


Edited by alkahol1k (01/12/04 04:21 AM)

Top
#104243 - 01/12/04 04:30 AM Re: $decode troubles
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
i cant seem to get it working
_________________________
http://MTec89Net.com
irc.freenode.net #MTec89Net

Top
#104244 - 01/12/04 04:54 AM Re: $decode troubles
Relinsquish Offline
Vogon poet

Registered: 25/03/04
Posts: 175
Loc: Canada
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

Top
#104245 - 01/12/04 05:03 AM Re: $decode troubles
MTec89 Offline
Hoopy frood

Registered: 25/07/03
Posts: 742
Loc: Ohio, U.S.A.
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

Top
#104246 - 01/12/04 09:27 PM Re: $decode troubles
Relinsquish Offline
Vogon poet

Registered: 25/03/04
Posts: 175
Loc: Canada
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

Top
#104247 - 02/12/04 04:03 AM Re: $decode troubles
tidy_trax Offline
Hoopy frood

Registered: 02/11/03
Posts: 2327
Code:
on ^*:text:*$decode(*)*:#:{
  var %a, %b = $regsub($1-,/\$decode\(.*\)/g,,%a)
  echo -bcflirt norm $chan %a
  haltdef
}
_________________________
New username: hixxy

Top