mIRC Home    About    Download    Register    News    Help

Print Thread
#46297 01/09/03 09:56 PM
Joined: Jul 2003
Posts: 742
MTec89 Offline OP
Hoopy frood
OP Offline
Hoopy frood
Joined: Jul 2003
Posts: 742
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
#46298 01/09/03 10:02 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Why would you say "lol lolipop" in the first place?

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

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


http://MTec89Net.com
irc.freenode.net #MTec89Net
#46300 01/09/03 10:04 PM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
/help $regex and this thread might be useful grin


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


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


and thanks pheonix


http://MTec89Net.com
irc.freenode.net #MTec89Net
#46303 01/09/03 10:08 PM
Joined: Jan 2003
Posts: 249
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Jan 2003
Posts: 249
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
Joined: May 2003
Posts: 2,265
P
Hoopy frood
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
#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