I tryed on disconnect, on snotice and on connectfail. But I still dont get the output I need to make this work.

My code:
Code
on 1:disconnect:{
  echo -a DISCONNECT: $1-
}

on 1:SNOTICE:*:{
  echo -a SNOTICE: $1-
}

on 1:connectfail:{
  echo -a FAIL: $1-
}


@debug:
Quote
<- ERROR :Closing Link: ***.***.**.*** (This server is not accepting new connections. Please connect to chat.freenode.net instead.)


Status window:
Quote
[11:26] * Connecting to sinisalo.freenode.net (6665)
-
[11:26] -sinisalo.freenode.net- *** Looking up your hostname...
-
SNOTICE: *** Looking up your hostname...
-
[11:26] -sinisalo.freenode.net- *** Checking Ident
-
SNOTICE: *** Checking Ident
-
[11:26] -sinisalo.freenode.net- *** Found your hostname
-
SNOTICE: *** Found your hostname
-
[11:26] -sinisalo.freenode.net- *** No Ident response
-
SNOTICE: *** No Ident response
[11:26] Caps supported: account-notify away-notify cap-notify chghost extended-join identify-msg multi-prefix sasl tls
[11:26] Caps set: account-notify away-notify cap-notify chghost extended-join multi-prefix
-
[11:26] Closing Link: ***.***.**.*** (This server is not accepting new connections. Please connect to chat.freenode.net instead.)
-
[11:26] * Disconnected
DISCONNECT: sinisalo.freenode.net