Regardless, this code does nothing but set a variable for two seconds if your nickname is typed in a channel you are not looking at.
Fail.