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 

challenging voice script

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


Joined: 03 Jan 2007
Posts: 77

PostPosted: Sun Mar 06, 2011 9:23 am    Post subject: challenging voice script Reply with quote

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
View user's profile Send private message
caesar
Mint Rubber


Joined: 14 Oct 2001
Posts: 3741
Location: Mint Factory

PostPosted: Tue Mar 08, 2011 3:13 am    Post subject: Reply with quote

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. Smile

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
View user's profile Send private message
samhain
Halfop


Joined: 03 Jan 2007
Posts: 77

PostPosted: Tue Mar 08, 2011 12:56 pm    Post subject: Reply with quote

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