🔔 Çevrimdışı bildirim almak ister misiniz?
Bir konuya etiketlendiğinizde, özel mesaj aldığınızda, bir mesajınız alıntılandığında forumda olmasanız bile anlık bildirim almak için lütfen izni verin.
Bu TCL ile, listeye eklediğiniz kullanıcılar kanal girişlerinde otomatik voice (veya başka modlar) alacak, kişiler ayrıca bir mesajla karşılanacaklardır.
Kullanım:
!vipekle Nick
!vip on/off
!vipsil Nick
!vipliste
PHP Kod: Kodu kopyalamak için üzerine çift tıklayın!
#VIP olanların host taramasının yapılacağı süre (dakika cinsinden)
proc listvip {nick host hand chan arg} { set dir "logs/vip($chan).txt" if {[file exists $dir] == 0} { set file [open $dir a] close $file } set file [open $dir "r"] set w [read -nonewline $file] close $file set data [split $w "\n"] set i 0 if {$data == ""} { puthelp "NOTICE $nick :Eklenen hiç VIP Yok!" return 0 }
proc remvip {nick host hand chan arg} { set dir "logs/vip($chan).txt" set number [join [lindex [split $arg] 0]] if {$number == ""} { puthelp "NOTICE $nick :Kullanım: !vipsil <number> (Listeden Seç)" return 0 } if {[file exists $dir] == 0} { set file [open $dir a] close $file } set file [open $dir "r"] set data [read -nonewline $file] close $file set lines [split $data "\n"] set i [expr $number - 1] set delete [lreplace $lines $i $i] set files [open $dir "w"] puts $files [join $delete "\n"] close $files puthelp "NOTICE $nick :VIP Listesinden, $number numaralı kişi silindi. Kontol etmek için !vipliste komutunu kullanın." }
proc vipscan {nick host hand chan} { global vipmsg viphowmsg set dir "logs/vip($chan).txt" if {[file exists $dir] == 0} { set file [open $dir a] close $file } set file [open $dir "r"] set w [read -nonewline $file] close $file set data [split $w "\n"] if {$data == ""} { return 0 } foreach vip $data { if {[string match -nocase $nick $vip]} { if {$viphowmsg == "1"} { puthelp "NOTICE $nick :$vipmsg" } pushmode $chan +v $vip } } }
proc vips { } { global viptime foreach chan [channels] { set dir "logs/vip($chan).txt" if {[channel get $chan vip]} { putlog "$chan kanalında VIP taraması yapılıyor.." set file [open $dir "r"] set w [read -nonewline $file] close $file set data [split $w "\n"] foreach vip $data { if {[onchan $vip $chan]} { if {![isvoice $vip $chan]} { pushmode $chan +v $vip } } } } } timer $viptime vips return 1 }
proc wordwrap {str {len 100} {splitChr { }}} { set out [set cur {}]; set i 0 foreach word [split [set str][unset str] $splitChr] { if {[incr i [string len $word]]>$len} { lappend out [join $cur $splitChr] set cur [list $word] set i [string len $word] } { lappend cur $word } incr i } lappend out [join $cur $splitChr] }
İsterseniz modları kendinize göre değişin, +v yerine +o verdirebilir veya birden fazla mod kullanabilirsiniz. Güle güle kullanın.