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 

TCL Flags

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ReeVo
Voice


Joined: 30 Jul 2014
Posts: 2

PostPosted: Thu Jul 31, 2014 1:56 pm    Post subject: TCL Flags Reply with quote

Hello Ppls,

i have installed the module Blacklist.tcl from this site. I have some question about this script. Actually this script working on channel with BOT OWNER. I want to make the script work with OPS, ADMIN, HELPOP an IRCops also. What must i change on this code that this work probably?
Actually only the bot owner cant enter the following command .blist .

Code:

bind PUB m|o \.blist blacklist:list
proc blacklist:list {nickname hostname handle channel arguments} {
global blacklist
set entrys 0
puthelp "NOTICE $nickname :Blacklist"
puthelp "NOTICE $nickname :Nr. Nick Ip/Host"
foreach entry [array names blacklist] {
incr entrys
set owner [lindex $blacklist($entry) 0]
while {[string length $owner] < 15} {
set owner "$owner"
}
if {[string length $entrys] < 2} {
set target "$entrys "
} else {
set target $entrys
}
puthelp "NOTICE $nickname :#$target $ops $entry"
}
puthelp "NOTICE $nickname :Sfarsitul Listei."
}


Thx for any help Wink
Back to top
View user's profile Send private message
Get_A_Fix
Master


Joined: 07 May 2005
Posts: 206
Location: New Zealand

PostPosted: Mon Aug 04, 2014 4:10 am    Post subject: Reply with quote

The subject body of this thread even tells you the answer you're looking for. It is the user flags that are inside the bind

Code:

bind PUB m|o .blist blacklist:list


The m| is for Global Master, while the |o is for Channel Operator. User's that have flags higher than these are also able to trigger, like a Channel Master, or Owner. It will be fine adding in your main user's, for Global bot users and Channel based. As for allowing IRCops to trigger, this would require more editing and possibly using a RAW numeric to match/check if someone is /oper'd.

Please read the tcl-commands.doc file, inside your eggdrop/doc directory. This will give you information on built in commands and global variables you're able to use/call. The information regarding BIND is near the bottom. You can also find the tcl-commands.doc file online, a simple search of google will return ones from egghelp, eggheads and other prospective sources.

Good Luck Smile
_________________
We explore.. and you call us criminals. We seek after knowledge.. and you call us criminals. We exist without skin color, without nationality, without religious bias.. and you call us criminals.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help 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