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.

devoice some hosts

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
d
djaxel
Voice
Posts: 1
Joined: Sun Mar 12, 2006 12:26 pm

devoice some hosts

Post by djaxel »

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

sorry for my bad english.

10x :roll:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

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
 }
}
w
whittinghamj
Op
Posts: 103
Joined: Sun May 21, 2006 4:50 pm

Post by whittinghamj »

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 :P

thanks

god bless
Post Reply