Nice theory. I decided to find yet another network, and see if that was the case. Sorry to tell you, but it doesnt look like it is.
Connect to irc.Bikers-IRC.net, $network returns Bikers-IRC-Network when connected, Bikers when you're disconnected. Sure, it does have a seperator after a C, but it splits before it, after an s.
I verified this and it's correct.
echo -s $network returns indeed Biker after disconnecting.
However, in my on connect and on disconnect events, the $network is always Bikers-IRC-Network so it doesn't affect scripts on those places. Scripts could go wrong though when it retrieves the network from a status window that is disconnected.
Some circumstances:
- Bikers-IRC-Network is NOT in my servers.ini
- engine.bikers-irc.net Unreal3.2.2 iowghraAsORTVSxNCWqBzvdHtGp lvhopsmntikrRcaqOALQbSeKVfMGCuzNT
- This network contains in the /version raw 005 reply as protocol NETWORK=Biker's-IRC-Network while the $network in my events return Bikers-IRC-Network so mIRC seems to strip off the ' from Biker's when filling $network.
This server seems abit inconsistent anyway:
Message of the Day, engine.bikers-irc.net
- 4/9/2005 2:11
- BikersIRCnet (Biker's IRC Network)
-
- Welcome to engine.bikers-irc.net!
-
- Network Founder: MadMax (admin@bikers-irc.net)
Versions:
- BikersIRCnet
- bikers-irc.net
- Biker's-IRC-Network
- Bikers-IRC-Network (stripped by mIRC)
uhm...
$network is not a reliable source anyway, some servers don't even sends the protocol list in the /version reply so $network is $null (example galaxynet)