I wish you'd have said that in your original post would have saved alot more time. No worries though.

Just add
.notice Panic $nick used the part command in # inside the if statement, after part $chan.
ON *:Text:!part CrazyMan:#:{
if ($nick isop $chan) {
part $chan
.notice Panic $nick used the part command in #
}
}
Like so.
But that really is pretty basic stuff, you should refer to the bible first. I mean help file.
On a side note, when posting code on the forums it makes it easier if the code is inside the code tags. Which is the # symbol inbetween quote and php tags.