exactly as the title says. If i am the only one left in my channel and i am not a op il hop
...and the question is what?
If you want a script to hop the channel when the the last person leaves then you can use this:
on !*:PART:#:if ( $nick(#,0) == 2 ) && ( $me !isop # ) { hop -c # }
There are also ways to set an owner or host key. Then you can just send the password request and you will be made a host or owner.
Shouldn't $nick(#,0) == 2 be $nick(#,0) == 1 , since it will only be 1 person on the channel?
The On Part triggers seem to see the channel just before the person leaves, instead of just after. As a result, if you're checking to see if you're the only one left, you would need to account for the person who just left, as well as yourself. That's why it checks for 2 people, and not 1.
As a sidenote, triggering before is an intentional design choice. It allows for standard checks like "if ($nick isop #)" to still be valid.