home *** CD-ROM | disk | FTP | other *** search
- // This is the ONCLONE TurboIRC Script
- // Copyright ⌐ Chourdakis Michael , 1998
-
- // The mask in $0 ... the Channel in $2 + 1
- string chn = strcpy("$2" + 1)
- string CurDom = ""
- string CurNick = ""
- int CloneNum = 0
-
- for (int K = 0 ; %K% < GetNickCount(%chn%) ; %K% += 1)
-
- %CurNick% = GetNick(%chn%,%K%)
-
- // Was it the one we have ?
- if (%CurNick% == $nick)
- continue
- endif
-
- // Get information about the nick's domain
- %CurDom% = GetUserDomain(%CurNick%)
- if (%CurDom%=="")
- continue
- endif
-
- // Is it the same ?
- if (%CurDom%==$IP)
- %CloneNum% += 1
- endif
-
- endfor
-
- if (%CloneNum% < 1)
- return
- endif
-
- // Here , show CLONE INFO !
- /pops %chn% ***HEY !!! CLONE HERE , $nick ($IP) ??? Already %CloneNum% user(s) in %chn% !!!
- //pops %chn% ***HEY %chn% !!!
-