This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

how do i change this

Old posts that have not been replied to for several years.
Locked
T
THUGNATURE
Voice
Posts: 13
Joined: Tue Apr 08, 2003 9:14 am

how do i change this

Post by THUGNATURE »

this public command allws to voice a nick in a channel which part do i change to make it mass voice all non voiced users in the channel any help would be great


bind pub o|o !v pub:voice
proc pub:voice {nick uhost hand chan text} {
set vnick [lindex $text 0]
if {[onchan $vnick $chan]==1} {
if {[isvoice $vnick $chan]==1} {
putserv "NOTICE $nick :$vnick ha già il voice"
}
}
if {[onchan $vnick $chan]==1} {
if {[isvoice $vnick $chan]==0} {
pushmode $chan +v $vnick
putcmdlog "!$hand! voice $vnick"
return 0
}
}
if {[isvoice $nick $chan]} {
putserv "NOTICE $nick :tu hai già il voice."

}
pushmode $chan +v $nick
putcmdlog "#$nick# voice $nick"

}
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind pub o|o !v pub:voice 
proc pub:voice {nick uhost hand chan text} { 
  if {![botisop $chan]} {
    putserv "NOTICE $nick :I'm not oped in channel"
    return
  }
  foreach luser [chanlist $chan] {
    if {$luser == $::botnick || [isop $luser $chan] || [isvoice $luser $chan]} {
      continue
    }
    pushmode $chan +v $luser
  }
}
Once the game is over, the king and the pawn go back in the same box.
T
THUGNATURE
Voice
Posts: 13
Joined: Tue Apr 08, 2003 9:14 am

thank you

Post by THUGNATURE »

thx for ur help bro im try it shortly thx again ;p
Locked