| View previous topic :: View next topic |
| Author |
Message |
djaxel Voice
Joined: 12 Mar 2006 Posts: 1
|
Posted: Sun Mar 12, 2006 12:32 pm Post subject: devoice some hosts |
|
|
hello
Can anyone help me with a script that devoice automaticly certain hostmasks on a channel ?
sorry for my bad english.
10x  |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Sun Mar 12, 2006 6:00 pm Post subject: |
|
|
| 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 |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Sun May 28, 2006 8:13 am Post subject: |
|
|
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
thanks
god bless |
|
| Back to top |
|
 |
|