mIRC Home    About    Download    Register    News    Help

Print Thread
#46297 01/09/03 09:56 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
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...

#46298 01/09/03 10:02 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
Why would you say "lol lolipop" in the first place?

#46299 01/09/03 10:03 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
im just using an example...

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

#46300 01/09/03 10:04 PM
Joined: Jan 2003
Posts: 149
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 149
/help $regex and this thread might be useful grin

#46301 01/09/03 10:06 PM
P
pheonix
pheonix
P
wb laugh

#46302 01/09/03 10:08 PM
Joined: Jul 2003
Posts: 733
M
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
M
Joined: Jul 2003
Posts: 733
well i was wanting to use $replace...


and thanks pheonix

#46303 01/09/03 10:08 PM
Joined: Jan 2003
Posts: 247
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 247
you can use $reptok() for that if the word is surrounded by spaces which is what you showed in your example.

#46304 02/09/03 08:44 AM
Joined: Sep 2003
Posts: 156
B
Vogon poet
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
}
}

#46305 02/09/03 10:26 AM
P
pheonix
pheonix
P
if your replacing: mirc with mIRC, you need to use $replacecs

#46306 02/09/03 06:07 PM
Joined: Sep 2003
Posts: 156
B
Vogon poet
Offline
Vogon poet
B
Joined: Sep 2003
Posts: 156
ty


Link Copied to Clipboard