| View previous topic :: View next topic |
| Author |
Message |
DjBeNNeTT Voice
Joined: 18 Feb 2006 Posts: 27 Location: Telford, Shropshire, UK
|
Posted: Sat Feb 18, 2006 7:22 pm Post subject: Changing Topic Permissions Script |
|
|
Does anyone have or can make a tcl script that lets me tell the bot WHO can change the topic in $chan. and kicks anyone else who does who is not on the list and changes topic back to what it last was?
Thanksies  _________________ DjBeNNeTT
Kewlsounds Radio:
http://kewlsounds.com
irc://irc.quakenet.org/#kewlsounds |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Mon Feb 20, 2006 9:58 pm Post subject: |
|
|
this will kick anyone who is not global or channel +o for that channel:
| Code: |
bind topc - * foo
proc foo {n u h c t} {
if ![matchattr $h o|o $c] {putkick $c $n oops}
}
|
_________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
DjBeNNeTT Voice
Joined: 18 Feb 2006 Posts: 27 Location: Telford, Shropshire, UK
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Feb 21, 2006 1:22 pm Post subject: |
|
|
But not everybody has +o flag on the bot. Using demond's code, only users with +o flag (on the bot) will be allowed to change the topic. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Tue Feb 21, 2006 8:16 pm Post subject: |
|
|
One could also restrict it even further by the use of 'TOPICLOCK' (if available) and not need use a bot at all. _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Tue Feb 21, 2006 11:45 pm Post subject: |
|
|
| DjBeNNeTT wrote: | That wont really help me much, everyone is OP and i need a code to say who can change the topic  |
then designate custom userflag, create user record with that flag, add people who are allowed to change topic to that record, and use the userflag instead of o in [matchattr] _________________ connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code |
|
| Back to top |
|
 |
DjBeNNeTT Voice
Joined: 18 Feb 2006 Posts: 27 Location: Telford, Shropshire, UK
|
Posted: Wed Feb 22, 2006 12:45 pm Post subject: |
|
|
i knew that. I appolagise lol
So how do i add them to the +o level on the bot?
I tried to give an account to someone aswell but they could not connect unless with my password :s _________________ DjBeNNeTT
Kewlsounds Radio:
http://kewlsounds.com
irc://irc.quakenet.org/#kewlsounds |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Feb 22, 2006 5:44 pm Post subject: |
|
|
| Quote: | .+user opednicks
.+host opednicks *!*@host
.chattr opednicks +o #channel
.chpass opednicks skdjdjskd |
you can add hosts to this handle using the .+host DCC command. i.e.
| Quote: | .+host opednicks *!*@host1
.+host opednicks nick!*@host2 |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|