mIRC Home    About    Download    Register    News    Help

Print Thread
#211310 11/04/09 08:12 PM
Joined: Apr 2009
Posts: 2
R
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Apr 2009
Posts: 2
Hello im making a very simple script but it need to:

Ignoring colors: DONE
Ignoring Spaces: ????

Quote:
on *:TEXT:*:#:{ if ( $strip($1) == !feit ) { notice $nick $read(feiten.txt) } }


Its now only ignoring color but some guys talk automatic with spaces before the text and that needs to be ignored


BTW this DONT work:
Quote:
on *:TEXT:*:#:{ if ( !feit* iswm $remove($strip($1),$chr(32)) ) { notice $nick $read(feiten.txt) } }

Last edited by RensThaScriptor; 11/04/09 08:12 PM.
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
try:
Code:
if ($gettok($strip($1-),1,32) == !feit)


E.g. the text "[ctrl-o][space]!feit" looks like "[space]!feit", but mIRC will take the [ctrl-o] for $1.


Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Alternative suggestion:
Code:
on *:text:*:#:{
  if $istok($strip($1-),!feit,32) {
    .notice $nick $read(feiten.txt)
  }
}


Joined: Apr 2009
Posts: 2
R
Bowl of petunias
OP Offline
Bowl of petunias
R
Joined: Apr 2009
Posts: 2
Thank you for the help it works good now


Link Copied to Clipboard