Jethro_ is an net admin on most ircd servers =P
An to extremity and python using
on @*:TEXT:*:#:{
if ($nick(#,$nick,oh)) {
the @ in the text event takes care of the checking if the bot/client running the code is +o in the chan, and the if ($nick(#,$nick,oh)) { makes sure the client triggering the code is either +o or +h in the chan.