Project

General

Profile

[deprecated] [Script] Simple selective join/part/quit mes... » Simple selective join-part-quit message blacklist v0.1.ini

Mr. BS, 04/19/2014 12:24 AM

 
; http://dev.adiirc.com/boards/5/topics/175
; Simple selective join/part/quit message blacklist
; v0.1 by pereba

; Config

; use format #channel,network #chan2,network2 #etc,netblabla
alias -l BlackList {
return #blableblibloblu,NordicIRC #test779797,freenode
}

; Script

on ^*:JOIN:*:{
if ($istok($BlackList,# $+ $chr(44) $+ $network,32)) {
halt
}
}

on ^*:PART:*:{
if ($istok($BlackList,# $+ $chr(44) $+ $network,32)) {
halt
}
}

on ^*:QUIT:{
var %i = 1
while ($comchan($nick,%i)) {
if (!$istok($BlackList,$comchan($nick,%i) $+ $chr(44) $+ $network,32)) {
echo 27 -trbf $comchan($nick,%i) * $chr(2) $+ $nick $+ $chr(2) ( $+ $address $+ ) has quit IRC ( $+ $1- $+ )
}
inc %i
}
halt
}
(1-1/7)