| View previous topic :: View next topic |
| Author |
Message |
samhain Halfop
Joined: 03 Jan 2007 Posts: 77
|
Posted: Sun Mar 06, 2011 9:23 am Post subject: challenging voice script |
|
|
Hi,
I need an autovoice script, perhaps svoice.tcl modified in such a way, That it should have TWO DCC Commands.
Command1: .add *!*@host.domain Human
Command2: .add *!*@host or *!*@*domain BANLISTS
The human and BANLISTS Should be a list of hosts or domains or ips.
What should the autovoice script do is to check if the user who joined the channel matches Human list then it should give them voice, but in case it matches BANLISTS, then notice the user "You are not voiced due to security reasons" and don't give the user voice in that case.
Here's an example:
.add *!*@*comcast BANLISTS
That means everyone who uses comcast will not get voiced on the channel.
but if i type .add *!*Icechat@78.21321.comcast.net Human
So this user should get auto voiced when it joins. I really need this script because of the floods in my channel, Thanks. |
|
| Back to top |
|
 |
caesar Mint Rubber

Joined: 14 Oct 2001 Posts: 3741 Location: Mint Factory
|
Posted: Tue Mar 08, 2011 3:13 am Post subject: |
|
|
Hi,
if the human user has a host like *!*Icechat@78.21321.comcast.net and the banlist one like *!*@*.comcast.net then the bot will always match the banlist user. To be honest I don't know any workaround for this. If anyone else knows one I'm more than happy to learn about it.
There's no need to reinvent the wheel since there's .+host that basically dose the same thing, as for the join you need to add a handle check and continue according to it:
| Code: |
if {$hand == "human"} {
# voice
} else {
# notice
}
|
_________________ Once the game is over, the king and the pawn go back in the same box. |
|
| Back to top |
|
 |
samhain Halfop
Joined: 03 Jan 2007 Posts: 77
|
Posted: Tue Mar 08, 2011 12:56 pm Post subject: |
|
|
Hi caesar, Thanks for your reply.
What I'm basically looking for is, a NOVOICE List, Novoice means An autovoice script which has The ability to autovoice everyone with exceptions, and exceptions should be those Which are added in a LIST of novoice. A novoice script which has the ability to add HOSTS, full domains, or nicks, so if a user joins the channel and the bot detects a host or a full domain matched to the user ip address, then the script should ignore the user from autovoice and send him a notice that 'You are not allowed to be voiced on this channel due to security reasons' Or "you are added in novoice list" Also There should be a DCC or private command to add and del hosts from Novoice list. Thanks |
|
| Back to top |
|
 |
|
|
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
|
|