Are you sure that $server is actually returning '' after you are connected? Some servers change their name after you connect. You might want to try this:

- Connect to the server
- Type: //echo -a $network
- Locate the root name of the server (ie. if the above command echos '', the root is 'servername')
- Use the following code, and replace servername with the actual root name of your server:

on *:start: { 
  ; Sqtnet

on *:connect: {
  ; Sqtnet 
  if (servername isin $network ) {
    ignore juicer
    join #squatjuice,#lean
    .timerignore 1 20 ignore -r juicer