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 

Changing Topic Permissions Script

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


Joined: 18 Feb 2006
Posts: 27
Location: Telford, Shropshire, UK

PostPosted: Sat Feb 18, 2006 7:22 pm    Post subject: Changing Topic Permissions Script Reply with quote

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 Very Happy
_________________
DjBeNNeTT

Kewlsounds Radio:
http://kewlsounds.com
irc://irc.quakenet.org/#kewlsounds
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Mon Feb 20, 2006 9:58 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
DjBeNNeTT
Voice


Joined: 18 Feb 2006
Posts: 27
Location: Telford, Shropshire, UK

PostPosted: Tue Feb 21, 2006 1:09 pm    Post subject: Reply with quote

That wont really help me much, everyone is OP and i need a code to say who can change the topic Wink
_________________
DjBeNNeTT

Kewlsounds Radio:
http://kewlsounds.com
irc://irc.quakenet.org/#kewlsounds
Back to top
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Feb 21, 2006 1:22 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Tue Feb 21, 2006 8:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Tue Feb 21, 2006 11:45 pm    Post subject: Reply with quote

DjBeNNeTT wrote:
That wont really help me much, everyone is OP and i need a code to say who can change the topic Wink

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
View user's profile Send private message Visit poster's website
DjBeNNeTT
Voice


Joined: 18 Feb 2006
Posts: 27
Location: Telford, Shropshire, UK

PostPosted: Wed Feb 22, 2006 12:45 pm    Post subject: Reply with quote

Embarassed i knew that. I appolagise lol Smile

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
View user's profile Send private message Visit poster's website
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Feb 22, 2006 5:44 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
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