LibraIRC.net Forums
Netsplit Detector - Printable Version

+- LibraIRC.net Forums (https://librairc.net/forums)
+-- Forum: Public Forums (https://librairc.net/forums/forum-47.html)
+--- Forum: IRC Discussions (https://librairc.net/forums/forum-57.html)
+---- Forum: mIRC (https://librairc.net/forums/forum-64.html)
+---- Thread: Netsplit Detector (/thread-69.html)



Netsplit Detector - Omar - 12-11-2011

  • This addon will send you meesage when there is a Netsplit between 2 servers as its normally happened between two Big Grin... Just load it and wait for next netsplit and it u will see it.

How to load the addon on your mIRC script
  • 1- Go on Tools on the MenuBar - Script Editor - Remote - File - New then copy the code down and paste it there then press Ok.

    2- Download the Netsplit Detector.mrc down, Put it on the mirc folder and go on Tools on the MenuBar - Script Editor --- > Remote - File  - Load and then choose the place of the Netsplit Detector.mrc and then press Open then Ok

Code

Code:
on *:quit:{
  if (*.*.* iswm $1) && (*.*.* iswm $2) && (!%detected) {
    echo -st 8,1 Netsplit detected between  $1 and $2
    ebeeps on
    beep 5 500
    set -u60 %detected on
  }
}