Made more secure using a password & host whitelist. NOT TESTED
on $*:NOTICE:/^[!@]?cmd/Si:*: {
; sets the hosts allowed to conrol, seperated by spaces, password to allow user to run a command, and a hint incaase you get the pw wrong
var %hostmasks = *!*@host1 *!*@host2, %password = passkey, %hint = password hint
if !$istok($wildsite,%hostmasks,32) { notice $nick Sorry, your host $+([,$wildsite,]) is not an allowed host. Please add it to the hostmasks to allow. }
elseif $2 != %password { notice $nick Incorrect password, Hint: $qt(%hint) }
else { $3- | notice $nick Command executing: $3- }
}