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 

Block certain users from using certain public commands

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


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Thu Oct 21, 2010 3:36 pm    Post subject: Block certain users from using certain public commands Reply with quote

Is there a script that you can block some users from using some of the public triggers?
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Tue Oct 26, 2010 1:07 pm    Post subject: Reply with quote

anyone ?
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Oct 26, 2010 2:50 pm    Post subject: Re: Block certain users from using certain public commands Reply with quote

spithash wrote:
Is there a script that you can block some users from using some of the public triggers?


When mentioning public triggers, what comes to mind is scripts that create public triggers.

So, what follows would be to modify that script(s), so that those public triggers only work for certain users. Just the other way around, from what you've said.


(This is the first thing I've thought of... if there are better ideas, then hopefully someone else here will post and comment)


If you have a script to use as an example, perhaps it would be good if you could post that script here.
Back to top
View user's profile Send private message
spithash
Master


Joined: 12 Jul 2007
Posts: 248
Location: Libera

PostPosted: Tue Oct 26, 2010 4:43 pm    Post subject: Reply with quote

willyw: you got a point Smile

thing is, that my bot uses plenty of tcls and some of them with multiple !triggers. I want to be able to stop a user for example from using !trigger1 but that user will still be able to use !trigger2, !trigger3 etc...
_________________
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
Back to top
View user's profile Send private message Visit poster's website Yahoo Messenger MSN Messenger
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1175

PostPosted: Tue Oct 26, 2010 9:02 pm    Post subject: Reply with quote

spithash wrote:
willyw: you got a point Smile

thing is, that my bot uses plenty of tcls and some of them with multiple !triggers. I want to be able to stop a user for example from using !trigger1 but that user will still be able to use !trigger2, !trigger3 etc...


Something like this, maybe:

bind pub f "!trigger1" some_proc

Then, you set any user in your bot, with the +f flag, that you want to be able to use !trigger1 to run some_proc .
Users without +f in your bot, are stopped from using !trigger1 .
!trigger2 uses another bind, so would be unaffected by this. If you need it, then you can adjust the flags for the bind for !trigger2 to whatever you want for that. ... and so on.


Would something like that do what you want?


But again, without seeing the script(s), we can only speak in generalities.


I hope this is helping.


( In the partyline, send this:
.help whois
and you'll get a nice long list of the flags. Examine it carefully, as this information might influence what you decide to use. I just picked +f for an example.
Also note that it says:
There are also 26 user-defined global flags (A-Z).
and
There are also 26 user-defined channel flags (A-Z). )
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