Hello Saturn, what a clear answer.
I'm the one investigating on this, I was going to write a bug report before Clint posted here.

Because your answer isn't helping, I'll quote:
Quote:

2 means that it has filled the data variable with a command which it wants mIRC to perform, and has filled parms with the parameters to use, if any, when performing the command.
I'm not native speaker but this is saying to fill 'data' with a command (which is itself totally vague, should we give switches and parameters? We won't go over how filling data with "echo -a ok" works), and eventually we can fill 'parms' which is the parameters passed to the command in 'data'.
Code:
lstrcpy(data,"/echo");
lstrcpy(parms,"-a test"); 

lstrcpy(data,"/echo");
lstrcpy(parms," -a test"); 

lstrcpy(data,"/echo ");
lstrcpy(parms,"-a test"); 

lstrcpy(data,"/echo ");
lstrcpy(parms," -a test"); 

lstrcpy(data,"/echo -a");
lstrcpy(parms,"test"); 

lstrcpy(data,"/echo -a");
lstrcpy(parms," test"); 

lstrcpy(data,"/echo -a ");
lstrcpy(parms,"test"); 

lstrcpy(data,"/echo -a ");
lstrcpy(parms," test"); 


None of this works but your short answer is suggesting that:
Code:
lstrcpy(data,"/echo");
lstrcpy(parms,"-a test"); 
should work, as in: if you were to have a /echo override, "-a test" would be $1- inside that alias, this doesn't work for me.

Can you provide a short sample of code which will make use of 'parm' variable when returning 2?





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