Hi,
I'm trying to write a script based off an UnrealIRCd that uses MD5 for encryption for the unrealircd.conf file,

Code:
alias unrealircdpass {
set %adminline2pass mkpasswd md5 %adminline1pass
set %adminline1pass %adminline2pass
}


Basically
Another pop up will set %adminline1pass as the Opers desired Oper password then trigger the alias unrealircdpass

I wish to set %adminline2pass with the result of the md5

the command is mkpasswd md5 <password>

My problem is when it sets it it sets it as the command line not the result, and I can't see what I could do to easily resolve that.

Thank you for any help, if there is a result for it.