mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2008
Posts: 3
N
nish Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jun 2008
Posts: 3
Bit of a easy question, I think.

I had a search around and could not find the answer so am asking here.

How do you get an identifier or variable to work without having to put a space in front of it?

e.g.
on *:TEXT:!mv*:#chan:{
msg #chan !botnumber$2.cmd blah blah
}

so that when triggered with !mv 99

it does !botnumber99.cmd blah blah

rather than !botnumber%2.cmd blah blah which is what is happening for me atm

Joined: May 2008
Posts: 329
A
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
Put a $+ between the text and variable.

msg #chan !botnumber $+ $2.cmd blah blah


I registered; you should too.
Joined: Jun 2008
Posts: 3
N
nish Offline OP
Self-satisified door
OP Offline
Self-satisified door
N
Joined: Jun 2008
Posts: 3
many thanks

Joined: May 2008
Posts: 329
A
Fjord artisan
Offline
Fjord artisan
A
Joined: May 2008
Posts: 329
I was a 'newbie' once too, and now I'm just trying to give back.


I registered; you should too.

Link Copied to Clipboard