|
|
Cyber_Axe
|
Cyber_Axe
|
is there an event that triggers on a netsplit? or would i have to use on quit?
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
on ^*:QUIT: { if ( *.*.* iswm $1 ) && ( *.*.* iswm $2 ) && ( %serv1 != $1 ) && ( %serv2 != $2 ) { %serv1 = $1 %serv2 = $2 echo $active 14«8×14»15«0»-. /¯(14 NetSplit Detected Between:4 $1 12& 4 $2 0)¯\ .-«15»14«8×15» } }
thats the only way i know of detecting it unless ur an Oper on a server .... then ud be able to see the split in an snotice
|
|
|
|
Joined: Dec 2002
Posts: 1,536
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,536 |
Wouldn't that also trigger on a normal quite with 2 urls in the quit message in spots $1 & $2?? I personally have NEVER seen that happen, but it WOULD be possible??
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Dec 2002
Posts: 2,958
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,958 |
Yep, it would. They'd have to add if (QUIT !isin $1) to stop it.
(Some IRCd's don't include "QUIT" in the reason at any time but they are in a minority I think.)
|
|
|
|
Joined: Dec 2002
Posts: 1,536
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,536 |
I suppose another way to filter it would be to use (!$3) also cause netsplits Ive seen NEVER have a 3rd value
Those who fail history are doomed to repeat it
|
|
|
|
cerberus_gr
|
cerberus_gr
|
On a quit the quit msg is always Quit:... On a kill the quit msg is always Killed... On a netsplit the quit msg is always *.*.* *.*.* (except some networks)
So if *.*.* iswm $1 this would be a netsplit....
|
|
|
|
Joined: Dec 2002
Posts: 3,015
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,015 |
On a quit the quit msg is always Quit:... Not on QuakeNet.
|
|
|
|
cerberus_gr
|
cerberus_gr
|
Nice code _D3m0n_ but if after a netsplit, another nesplit of the same servers comes??? The netsplit detector won't work :P
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
kewl so do u know of a way to actually make it work then ..... cause ur right what i have has seemed a bit buggy to me ..... any suggestions would be greatly appreciated
|
|
|
|
Joined: Dec 2002
Posts: 1,536
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,536 |
Well, then just tweak the script a bit:
on ^*:QUIT: { if ( *.*.* iswm $1 ) && ( *.*.* iswm $2 ) && ( %serv1 != $1 ) && ( %serv2 != $2 ) { //set -u60 %serv1 = $1 //set -u60 %serv2 = $2 echo $active 14«8×14»15«0»-. /¯(14 NetSplit Detected Between:4 $1 12& 4 $2 0)¯\ .-«15»14«8×15» } }
This way, in 60 seconds the vars unset themselves and will work if one of those two servers splits again. The good part is that on a split, the 2 sdervers split right off and even if they come back right away and split again WITHIN 60 seconds, it WONT show a duplicate split. You can also change the timeframe all you want. It SHOULD work for multiple splits on a network cause Ive had mine work for 3 splits (total of 6 servers) in 5 minutes.
Those who fail history are doomed to repeat it
|
|
|
|
Joined: Dec 2002
Posts: 1,518
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,518 |
kewl ty for the help with that lil bit of info much appreciated
|
|
|
|
|
|