mIRC Home    About    Download    Register    News    Help

Print Thread
$replace #46297
01/09/03 09:56 PM
01/09/03 09:56 PM
Joined: Jul 2003
Posts: 742
Ohio, U.S.A.
MTec89 Offline OP
Hoopy frood
MTec89  Offline OP
Hoopy frood

Joined: Jul 2003
Posts: 742
Ohio, U.S.A.
how can i replace lol and stuff like that with replace and not replaceing stuff like ~lol~ or if i must use this word... lolipop





BTW....
im back...and im going to chill out..ok...i just needed some time away...


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: $replace #46298
01/09/03 10:02 PM
01/09/03 10:02 PM
Joined: Dec 2002
Posts: 3,547
Kent, England
S
SladeKraven Offline
Planetary brain
SladeKraven  Offline
Planetary brain
S

Joined: Dec 2002
Posts: 3,547
Kent, England
Why would you say "lol lolipop" in the first place?

Re: $replace #46299
01/09/03 10:03 PM
01/09/03 10:03 PM
Joined: Jul 2003
Posts: 742
Ohio, U.S.A.
MTec89 Offline OP
Hoopy frood
MTec89  Offline OP
Hoopy frood

Joined: Jul 2003
Posts: 742
Ohio, U.S.A.
im just using an example...

lolipop would turn into (in my script)
laughing out loudipop


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: $replace #46300
01/09/03 10:04 PM
01/09/03 10:04 PM
Joined: Jan 2003
Posts: 150
Latvia, LV
J
J0ke Offline
Vogon poet
J0ke  Offline
Vogon poet
J

Joined: Jan 2003
Posts: 150
Latvia, LV
/help $regex and this thread might be useful grin


Go ahead, jump. 100,000 lemmings can't be wrong.
Re: $replace #46301
01/09/03 10:06 PM
01/09/03 10:06 PM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
pheonix  Offline
Hoopy frood
P

Joined: May 2003
Posts: 2,265
wb laugh


new username: tidy_trax
Re: $replace #46302
01/09/03 10:08 PM
01/09/03 10:08 PM
Joined: Jul 2003
Posts: 742
Ohio, U.S.A.
MTec89 Offline OP
Hoopy frood
MTec89  Offline OP
Hoopy frood

Joined: Jul 2003
Posts: 742
Ohio, U.S.A.
well i was wanting to use $replace...


and thanks pheonix


http://MTec89Net.com
irc.freenode.net #MTec89Net
Re: $replace #46303
01/09/03 10:08 PM
01/09/03 10:08 PM
Joined: Jan 2003
Posts: 249
Ottawa, Canada
C
ClickHeRe Offline
Fjord artisan
ClickHeRe  Offline
Fjord artisan
C

Joined: Jan 2003
Posts: 249
Ottawa, Canada
you can use $reptok() for that if the word is surrounded by spaces which is what you showed in your example.

Re: $replace #46304
02/09/03 08:44 AM
02/09/03 08:44 AM
Joined: Sep 2003
Posts: 156
B
bleach Offline
Vogon poet
bleach  Offline
Vogon poet
B

Joined: Sep 2003
Posts: 156
on *:input:*: {
if (/* !iswm $1-) { msg $active $replace($1-,lol,lolipop,mirc,mIRC,IRC,Internet Relay Chat)

halt
}
}

Re: $replace #46305
02/09/03 10:26 AM
02/09/03 10:26 AM
Joined: May 2003
Posts: 2,265
P
pheonix Offline
Hoopy frood
pheonix  Offline
Hoopy frood
P

Joined: May 2003
Posts: 2,265
if your replacing: mirc with mIRC, you need to use $replacecs


new username: tidy_trax
Re: $replace #46306
02/09/03 06:07 PM
02/09/03 06:07 PM
Joined: Sep 2003
Posts: 156
B
bleach Offline
Vogon poet
bleach  Offline
Vogon poet
B

Joined: Sep 2003
Posts: 156
ty