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.

Changing Topic Permissions Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
D
DjBeNNeTT
Voice
Posts: 27
Joined: Sat Feb 18, 2006 6:40 pm
Location: Telford, Shropshire, UK
Contact:

Changing Topic Permissions Script

Post by DjBeNNeTT »

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 :D
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

this will kick anyone who is not global or channel +o for that channel:

Code: Select all

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: Select all

 tag when posting logs, code
D
DjBeNNeTT
Voice
Posts: 27
Joined: Sat Feb 18, 2006 6:40 pm
Location: Telford, Shropshire, UK
Contact:

Post by DjBeNNeTT »

That wont really help me much, everyone is OP and i need a code to say who can change the topic ;)
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

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.
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

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: Select all

 tag when posting logs, code
D
DjBeNNeTT
Voice
Posts: 27
Joined: Sat Feb 18, 2006 6:40 pm
Location: Telford, Shropshire, UK
Contact:

Post by DjBeNNeTT »

:oops: 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
User avatar
Sir_Fz
Revered One
Posts: 3793
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

.+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.
.+host opednicks *!*@host1
.+host opednicks nick!*@host2
Post Reply