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 

no manual op TCL HELP !!!

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
natter
Voice


Joined: 02 Sep 2005
Posts: 4

PostPosted: Fri Sep 02, 2005 12:19 pm    Post subject: no manual op TCL HELP !!! Reply with quote

I create a simple tcl to prevent manual op on chan :

Code:

bind mode - *+o* no_manual_op

proc no_manual_op {nick uhost hand chan mode victim} {

        if {([matchattr $hand b]) || ([matchattr $hand n])} {
        putlog "Manual OP on $chan by $nick for $victim"
        } else {
        putserv "MODE $chan -o $nick"
        }
}


If user without n/b flag can Manual op other user ...

now ...

I want to add this check :

if opped user are n/b stay opped , else is deopped


Can you help me please ?
Back to top
View user's profile Send private message
demond
Revered One


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

PostPosted: Fri Sep 02, 2005 12:28 pm    Post subject: Reply with quote

just add [matchattr] check for victim in that if
Back to top
View user's profile Send private message Visit poster's website
natter
Voice


Joined: 02 Sep 2005
Posts: 4

PostPosted: Fri Sep 02, 2005 12:32 pm    Post subject: Reply with quote

How ?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Sep 02, 2005 12:44 pm    Post subject: Reply with quote

Code:
[nick2hand $victim]

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
natter
Voice


Joined: 02 Sep 2005
Posts: 4

PostPosted: Fri Sep 02, 2005 12:47 pm    Post subject: Reply with quote

Code:

if {([matchattr nick2hand $victim b]) || ([matchattr nick2hand $victim n])}


im a newbie Laughing
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Sep 02, 2005 12:52 pm    Post subject: Reply with quote

I gave you the command with brackets, yet you managed to remove them Razz
Code:
if {([matchattr [nick2hand $victim] b]) || ([matchattr [nick2hand $victim] n])} {

_________________
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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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