Sephiroth
http://sephiroth.scifi-action.de/board/

+i checker?
http://sephiroth.scifi-action.de/board/viewtopic.php?f=4&t=48
Seite 1 von 1

Autor:  Sephiroth [ 18. März 2008 00:30 ]
Betreff des Beitrags:  +i checker?

;; on @*:rawmode:#mychannel:{ if ($i-check($1)) { mode # -i } }
;; maybe you notice it, i hate regex ;)
alias i-check {
  var %x = $1,%i,%t,%o,%y
  if (+ isin %x) && (i isincs %x) {
    %y = $len(%x)
    while (%y) {
      %t = $mid(%x,%y,1)
      if (%t == -) { unset %i } | if (%t == +) && (%i) { %o = $true | unset %i } | if (%t == i) { %i = $true }
      dec %y
    }
    if (%o) { return $true }
    else { return $false }
  }
  else { return $false }
}

Seite 1 von 1 Alle Zeiten sind UTC + 1 Stunde
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/