| View previous topic :: View next topic |
| Author |
Message |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Thu Oct 21, 2010 3:36 pm Post subject: Block certain users from using certain public commands |
|
|
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 |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Tue Oct 26, 2010 1:07 pm Post subject: |
|
|
anyone ? _________________ Libera ##rtlsdr & ##re - Nick: spithash
Click here for troll.tcl |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Tue Oct 26, 2010 2:50 pm Post subject: Re: Block certain users from using certain public commands |
|
|
| 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 |
|
 |
spithash Master

Joined: 12 Jul 2007 Posts: 248 Location: Libera
|
Posted: Tue Oct 26, 2010 4:43 pm Post subject: |
|
|
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 |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Tue Oct 26, 2010 9:02 pm Post subject: |
|
|
| 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). ) |
|
| Back to top |
|
 |
|