$duration is a built in identifier, you should use a different name. Just make a $quitmsg alias and put it in the setting, then have the alias return whatever you want. You can't edit mirc's ini file when it is running.