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 

devoice some hosts

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


Joined: 12 Mar 2006
Posts: 1

PostPosted: Sun Mar 12, 2006 12:32 pm    Post subject: devoice some hosts Reply with quote

hello
Can anyone help me with a script that devoice automaticly certain hostmasks on a channel ?

sorry for my bad english.

10x Rolling Eyes
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Sun Mar 12, 2006 6:00 pm    Post subject: Reply with quote

Code:
set hosts {*!*@host1 *!*@host2}

bind mode - {* +v} devoice:hosts

proc devoice:hosts {nick uhost hand chan mc targ} {
 set isv 0
 foreach host $::hosts {
  if {[string match -nocase $host $targ![getchanhost $targ $chan]]} {
   set isv 1; break
  }
 }
 if {$isv} {
  pushmode $chan -v $targ
 }
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Sun May 28, 2006 8:13 am    Post subject: Reply with quote

is there a way to set this script to read the list of hosts from a txt file? and have a pub command to add and remove the hosts?

like this

!add <nick>

then the bot goes off and finds the *!*@*.isp.com host, add it to the file and off we goo

same for remove

!del <nick> off we go and who the user find the host and match it in the file - remove it from the file? would that be alot of work -

if someone coud pull this off i would buy you a years supply of beer and naked chicks Razz

thanks

god bless
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 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