mIRC Home    About    Download    Register    News    Help

Print Thread
#272408 15/02/24 04:16 AM
Joined: Feb 2024
Posts: 1
S
Mostly harmless
OP Offline
Mostly harmless
S
Joined: Feb 2024
Posts: 1
Something is (fishy)

how to remove the ( ) in fishy for my bot?


.so the output for the bot is like

scid 1 msg # Something is $3

$3 would be fishy without the ( )

Joined: Jul 2006
Posts: 4,180
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,180
//echo -a $mid((fishy),2,-1) -- $mid(LfishyR,2,-1) -- $remove((fishy),$chr(40),$chr(41)) -- $remove((fis()hy),$chr(40),$chr(41)) -- $regsubex((fishy),^\((.*)\)$,\1) -- $regsubex((fis()hy),^\((.*)\)$,\1) -- $regsubex(LfishyR,^\((.*)\)$,\1)

This will illustrate that depending on your exact requirement, $regsubex may be the only short solution as $remove will remove the character everywhere and $mid will just ignore any character here.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard