I was wondering if someone could change this into a pop up, that if any half op or op would type !mute (someones nick) 5 it would mute them for 5 mins, but i want the time to be a variable.

Code:
 /mute /mode $chan +b ~q: $+ $address($$1,2) | /say $$1 you have been muted. Please take this time to think what you're saying. After the mute, if you continue to misbehave, you will be removed
/mute10 {

  /mode $chan -b ~q: $+ $address($$1,2)
}
/mute5 {
  /mode $chan +b ~q: $+ $address($$1,2) | /msg $chan $$1 you have been muted for five minutes. Please take this time to think what you're saying. After the mute, if you continue to misbehave, you


  /timer 0 300 /mode $chan -b ~q: $+ $address($$1,2)
}

/unmute /mode $chan -b ~q: $+ $address($$1,2) | /say $$1 you have now been unmuted. We hope youve thought over your actions and are now ready to participate in a acceptable manner.
/mute10 {

  /mode $chan -b ~q: $+ $address($$1,2)
}
/mute5 {
  /mode $chan +b ~q: $+ $address($$1,2) | /msg $chan $$1 you have been muted for five minutes. Please take this time to think what you're saying. After the mute, if you continue to misbehave, you


  /timer 0 300 /mode $chan -b ~q: $+ $address($$1,2)
}