Thank you man. I solved the problem. It appeared that my script is already having a modification inside aliases like this:
/hop {
/part $chan 3°14¤3©14>3 $+ $me $+ 14<3©14¤3° | .timer 1 2 /join $chan
}
As you can see, it parts the channel on /hop which is why it closes the window for me ^^;
Thank you anyway, I was rushing to know the solution for this problem and I could find no better place than this forum, which is why I registered!