Did test it here, working for me. Do you have op in the channel? If not, remove the lines:
if (%nflood.status == 1) && ($me isop $chan)
&& ($me isop $chan) {

and also this one
if ($me isop $comchan($newnick,%i)) {

You also need to remove 1 } at the end of the code.

if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }