egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stupid pushmode

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
Ecimo
Voice


Joined: 27 Dec 2005
Posts: 5

PostPosted: Mon Mar 13, 2006 1:06 pm    Post subject: Stupid pushmode Reply with quote

Bug 1:
the proc demute is the problem can some help me there?
«11:15:43» {@Mulle^:#game-fair.dk} !mute l0rn|Mortar^off l0rn|RR^Off
«11:15:44» « Mode » {[Game-Fair]} sets {-vv l0rn|Mortar^off l0rn|RR^Off}
«11:17:43» « Mode » {[Game-Fair]} sets {+v l0rn|Mortar^off}

Code:
set mutedhosts ""

bind join -|- * myavoice
bind PUB -|- !mute mymute
bind PUB -|- !demute demute2

proc myavoice {n u h c} {
  if {![string equal -nocase $c "#game-fair.dk"]} {return}
  global mutedhosts
  if {[lsearch -exact $mutedhosts $u] == -1} {
    pushmode $c +v $n
  } else { puthelp "PRIVMSG $c :\002$n\002 (\002*!*$u\002) have been a bad boy, You have to wait 2 mins." }
}

proc mymute {n u h c a} {
  if {![string equal -nocase $c "#game-fair.dk"] || ![isop $n $c]} {return}
  global mutedhosts
  foreach v [split $a] {
    if {[onchan $v $c]} {
      lappend mutedhosts [set uh [getchanhost $v $c]]
      pushmode $c -v $v
      utimer 120 [list demute $v $uh $c]
    }
  }
}

proc demute2 {n u h c a} {
  if {![string equal -nocase $c "#game-fair.dk"] || ![isop $n $c] || ![onchan $a $c]} {return}
  foreach v [split $a] {
  demute $v [getchanhost $v $c] $c
  }
}

proc demute {n h c} {
  global mutedhosts
  if {[set pos [lsearch -exact $mutedhosts $h]] == -1} {return}
  while {[set pos [lsearch -exact $mutedhosts $h]] != -1} {
    set mutedhosts [lreplace $mutedhosts $pos $pos]]
  }
  if {[onchan $n $c]} {
    pushmode $c +v $n
    } {
    foreach curuser [chanlist $c] {
      if {[getchanhost $curuser] == $h && ![isvoice $curuser $c]} {pushmode $c +v $curuser}
    }
  }
}
Back to top
View user's profile Send private message
spock
Master


Joined: 12 Dec 2002
Posts: 319

PostPosted: Mon Mar 13, 2006 5:06 pm    Post subject: Reply with quote

do they by any chance have the same u@h ?
_________________
photon?
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber