Thread: Admin ON/OFF
View Single Post
Old 29-12-2005, 10:55   #3 (permalink)
lsn
Member
 
lsn's Avatar
 
Join Date: Jun 2004
Location: In the NeXuS
Posts: 160
Rep Power: 38
lsn will become famous soon enough
Default

hai sa incercam ceva mai simplu .......
Code:
set schan "#bla"
bind join - * admin:check
proc admin:check {nick uhost hand chan} {
   global schan
   if {![string equal -nocase $chan $schan]} {return}
   if { [matchattr $hand vl|vl $chan]} {return}
   set admins ""
   foreach u [userlist vl-b|vl $chan] {
                if {[handonchan $u $chan]} {lappend admins "[hand2nick $u $chan],"}
   }
   if {![llength $admins]} {puthelp "NOTICE $nick :Nu este nici un admin online ....."} {puthelp "NOTICE $nick :Adminii online sunt: [string trimright $admins ","] ....."}
}
lsn is offline   Reply With Quote