well how about this?
on 1:join:#:{
if ($me isowner $chan) { /prop $chan ownerkey $$?="Enter key:" }
}