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 

Autovoice plus manual +v -v

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
lighten
Voice


Joined: 08 Jan 2010
Posts: 1

PostPosted: Fri Jan 08, 2010 5:02 pm    Post subject: Autovoice plus manual +v -v Reply with quote

I am currently using lol.tcl, and am trying to find a way to have the eggie autovoice, and allow the chanops to voice, devoice... and have the bot remember which users were devoiced so they can't just cycle and be +v again..

When I set +autovoice and +v -v, the manual part stopped the autovoice from working. I set a generic user at *!*@* with mode +g so that all would be voiced, but now what is happening is that -v folks can cycle and get voice again.

The eggie that used to do this correctly disappeared along with the script.. so we are back at the beginning Smile

Thanks,

Lighten

(eggie is on efnet)
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Sat Jan 09, 2010 7:01 am    Post subject: Reply with quote

This should probably be scripting help or request, none the less. I hope this script helps, it dose remove the person as well if they are re-voiced by an Operator and it dose ignore valid users (people in eggdrop's userfile)
Code:
 proc join:autovoice {nick host hand chan} {
  global devoice
   if {(![info exists devoice([maskhost $host])])&&(![validuser $hand])} {
    pushmode $chan +v $nick
   }
 }

 proc mode:devoice {nick host hand chan mode {target ""}} {
  global devoice botnick
   if {$target == ""} {set target "$botnick"}
    if {(![isbotnick $target])&&([isop $nick $chan])&&(![validuser [hand2nick $target]])} {
     set devoice([maskhost [getchanhost $target $chan]]) "1"
    }
 }

 proc mode:voice {nick host hand chan mode {target ""}} {
  global devoice botnick
   if {$target == ""} {set target "$botnick"}
    if {(![isbotnick $target])&&([isop $nick $chan])&&(![validuser [hand2nick $target]])&&([info exists devoice([maskhost [getchanhost $target $chan]])])} {
     array unset devoice [maskhost [getchanhost $target $chan]]
    }
 }

 bind join -|- "*%*" join:autovoice
 bind mode -|- "*-v*" mode:devoice
 bind mode -|- "*+v*" mode:voice

 putlog "loaded devoice.tcl version 1.0 by TCL_no_TK"
 return

_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests 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