mIRC Home    About    Download    Register    News    Help

Print Thread
#118110 22/04/05 01:15 PM
Joined: Apr 2005
Posts: 6
C
Cipheri Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Apr 2005
Posts: 6
Hey,
I wonder how i can ditch a char from a notice I get.
The notice is like:
20:36:30hrs - Bla bla bal [ahahaha] lalala
I want to get rid of the '[' and the ']'
Is there any way to set a var with $1- aand before or after doing this, getting rid of the '[' & ']'
so i will get a var wich reads:
20:36:30hrs - Bla bla bal ahahaha lalala

Much thankies, i cant fgure it out :-)

#118111 22/04/05 01:24 PM
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
//echo -a $remove(12[34]56,[,])


Gone.
#118112 22/04/05 01:33 PM
Joined: Apr 2005
Posts: 6
C
Cipheri Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Apr 2005
Posts: 6
Thanks for the quick reply.

on *:NOTICE:*:#F{
-a $remove(12[34]56,[,])
/write -a F.txt $1-
}

But i still get the [] in the .txt file there..
What am i missing?

#118113 22/04/05 01:36 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on *:NOTICE:*:#F{
  write -a F.txt $remove($1-,[,])
}


echo -a is just for testing.


Invision Support
#Invision on irc.irchighway.net
#118114 22/04/05 01:41 PM
Joined: Apr 2005
Posts: 6
C
Cipheri Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
C
Joined: Apr 2005
Posts: 6
Great,

So i'm guessing this will also work like this:
set %f $remove($1-,[,])

Thankies smile

#118115 22/04/05 02:06 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Yes, it will.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard