ZNC "Fixing" bugs

By ChanZin on May 09, 2010

I created this script to "fix" some bugs in znc.

When i joined a channel, showed this in Status Windows:

channel +CTntS

-

channel created on Sun May 09 10:55:52 2010


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)

http://en.znc.in/wiki/Watch

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
      }
    }
  }
}

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.