I created this script to "fix" some bugs in znc.
-
Watch module won't open/send pvt when you change nick or join/part channels. (if hightlighter is called *highlight, else it won't work)
If a user highlight you in pvt, and he is in your ignored list, the watch won't open/send too (if hightlighter is called *highlight, else it won't work)
raw *:*: { if ($istok(329 324,$numeric,32)) { haltdef } }
on ^*:open:?:*: { znc_pvt $iif([??:??:??] iswm $1,1 $nick $2-,2 $nick $1-) }
on ^*:text:*:?: { znc_pvt $iif([??:??:??] iswm $1,1 $nick $2-,2 $nick $1-) }
alias znc_pvt {
if ($2 == *highlight) {
if ($3 $4 == $chr(42) $me && $istok(joins parts,$6,32)) { halt }
elseif ($3 == $chr(42) && $4 $5 $6 $7 $8 == $me is now known as) { halt }
elseif ($3 == $chr(42) && $4 $5 $6 == $me sets mode:) { halt }
elseif ($chr(35) !isin $3 && $left($3,1) == $chr(60) && $right($3,1) == $chr(62)) {
var %x 1
while (%x <= $query(0)) {
if ($remove($3,$chr(60),$chr(62)) == $query(%x)) { echo . $v1 - $v2 | var %x_x x }
if (%x == $query(0) && !%x_x) { halt }
inc %x
}
}
}
}