First, lemme just stress that it is not in any way whatsoever possible to prevent someone from looking at or copying your code. You *can* do it by messing with the mirc.exe file, you can use dll's or whatever, but there is nothing you can do to prevent someone from opening the file in their favorite text editor or Notepad. With your post you offer false hope to those who are paranoid. There is nothing you can do.

Specifically:

1. as you said - only works against the most ignorants
2. complete bull. all the user has to do is delete the checking of the variable and you're screwed.
3. see 2.

Also: if you are tired of having people ask the same question over and over, there is two things I can say to that:
a] this post isn't gonna help. people who ask the question either didn't care about the answers they already found here, or they didn't bother to look
b] giving people help that doesn't work isn't helping

In reply to bunar:

They are still rippers or copiers or whatever. Copying someone else's code and calling it your own does not make you a coder.