mIRC Homepage
Posted By: AD1C msg vs. /msg - 13/10/11 04:31 PM
First, thanks everyone for the help so far. I'm getting much more comfortable with this.

In the script I inherited, I see a mixture of "msg ...." and "/msg ....". Is one form preferred over the other, and if so, why? Here are some examples:

  if ($did == 11) { /msg #marac !last5 }

  if (%needreply != $null) { msg #MARAC ,2SPECIAL NEED [ $+ %readline $+ ]: %needreply }
Posted By: RoCk Re: msg vs. /msg - 13/10/11 04:41 PM
The command prefix (slash /) is not necessary inside of a script, but it works the same either way.
Posted By: AD1C Re: msg vs. /msg - 13/10/11 04:58 PM
Thanks!
Posted By: Riamus2 Re: msg vs. /msg - 13/10/11 05:04 PM
Because /'s are required on the command line (in the edit box), new scripters sometimes are not aware that /'s are not required in a script. You can remove them to clean up the script if you like, or leave them and they won't hurt anything.
© mIRC Discussion Forums