$network and/or $nick not being filled - 20/08/08 01:49 AM
This first situation occurs occasionally, but I'm unable to determine any rhyme or reason for it. The code is
Most of the time this works exactly as I expected, but occasionally I get a * /writeini: insufficient parameters message. Testing has shown that when this comes up, $network and/or $nick are returned as $null, so the error makes sense, I'm just wondering if there's a way to guarantee the information is present, or if someone has an alternative idea.
Code:
on *:disconnect:{ .writeini -n connections.ini $network Nick $nick if $away { .writeini connections.ini $network Away $awaymsg } }
Most of the time this works exactly as I expected, but occasionally I get a * /writeini: insufficient parameters message. Testing has shown that when this comes up, $network and/or $nick are returned as $null, so the error makes sense, I'm just wondering if there's a way to guarantee the information is present, or if someone has an alternative idea.