Code:
[color:green]; detect if $2 is the switches[/color]
if ($left($2,1) == 1) {
  [color:green]; detect switch and act on it[/color]
  if (d isin $2) { do stuff }
  if (r isin $2) { do stuff }
}


Pretty sure your code for the -d switch is not gonna work tho - as soon as you type exit, mIRC closes - then there's no program running to restart the exefile. mIRC cannot restart itself far as I know.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius