I think you may be confusing server and network. They are two different things. A network is something like Undernet and Efnet. Each network usually has multiple servers, often with some in different countries. Regardless which server you're on, you are still on the same network.
In most cases, all servers on a specific network use the same nickserv password. If you use $server, you'd have to include every server that the network has. Instead, if you use $network, then it won't matter which server you happen to connect to... the password will be sent.
To get the correct $network name to put in your IF statement, type the following while on that network:
//echo -a $network
Last edited by Riamus2; 05/11/11 11:32 PM.