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.

Block certain users from using certain public commands

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Block certain users from using certain public commands

Post by spithash »

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
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

anyone ?
Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Re: Block certain users from using certain public commands

Post by willyw »

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.
User avatar
spithash
Master
Posts: 249
Joined: Thu Jul 12, 2007 9:21 am
Location: Libera
Contact:

Post by spithash »

willyw: you got a point :)

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
w
willyw
Revered One
Posts: 1203
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

spithash wrote:willyw: you got a point :)

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). )
Post Reply