mIRC Home    About    Download    Register    News    Help

Print Thread
#231173 07/04/11 02:13 AM
Joined: Mar 2011
Posts: 3
D
duke605 Offline OP
Self-satisified door
OP Offline
Self-satisified door
D
Joined: Mar 2011
Posts: 3
Hello,
I play a game called "minecraft" and there is an IRC plugin for it and when people talk on the server a bot relays it back to the IRC with there name like:

(duke605) hello people

now im wondering if i can trim the ends of $1 or (duke605) so it shows up as duke605 instead of (duke605)

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
This is easily done with a script.
Presuming that your information is correct, then this should do what you want.
Code:
on ^*:text:*:#:{
  .echo $chan $remove($1,$chr(40),$chr(41)) $2-
  haltdef
}

NOTE: This will produce the same type of output no matter what the text is and no matter what channel.


Link Copied to Clipboard