Excess flood on Relay script! Please help - 08/08/21 06:42 AM
I use code relay script to talk back and forth between 2 servers (Server1 is my server). However, I have a problem:
1. If server2 is net.split or mass quits/disconnected, my bot relay will be disconnected (excess flood).
2. If server2 has massjoins, my bot relay will also be disconnected (excess flood).
How to make Bot not disconnected anymore? Thanks for help all
Here is my code:
1. If server2 is net.split or mass quits/disconnected, my bot relay will be disconnected (excess flood).
2. If server2 has massjoins, my bot relay will also be disconnected (excess flood).
How to make Bot not disconnected anymore? Thanks for help all
Here is my code:
Code
#joinrelay on on *:join:#undernet: { if ($rcheck($network,%serv1,$chan,%chan1)) { relay %serv2 msg %chan2 ( $+ $network $+ )3 $nick $+ ! $+ $address joined } } #joinrelay end on !*:JOIN:#undernet:{ inc -u10 $+(%,join.,$nick,$chan) if ($($+(%,join.,$nick,$chan),2) >= 10) { if ($me isop #) { .disable #joinrelay | .timerjoinrelay 1 10 .enable #joinrelay } } } #quitrelay on on *:QUIT: { if ($rcheck($network,%serv1)) { relay %serv2 msg %chan2 ( $+ $network $+ )10 $nick $+ ! $+ $address quit ( $+ $1- $+ ) } } #quitrelay end on *:quit: { if (%quit-flood1 == $null) { set -u30 %quit-flood1 1 return } else { inc %quit-flood1 } if (%quit-flood >= 10 && %quit-flood1.check == $null) { set -u20 %quit-flood1.check 1 while ($comchan($nick,%quit-flood1)) { .disable #quitrelay | timerrelay 1 10 .enable #quitrelay } } }