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 

Check Access List Script

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


Joined: 22 Feb 2020
Posts: 138
Location: Northern Ireland

PostPosted: Mon Apr 27, 2020 4:27 pm    Post subject: Check Access List Script Reply with quote

Good Day All

So i am needing to request a script that does the following things

checks access list (vop hop aop sop qop) this access list is more popular on networks like freenode,rizon,mibbit etc

i am Not looking for a script that checks if the user has the corredt user flags but rather checks chanserv any help appreciated and i will use this script to further my learning of TCL Very Happy Cheers Wink
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 138
Location: Northern Ireland

PostPosted: Wed May 20, 2020 11:04 am    Post subject: Reply with quote

Hey all so since i figured out how to do this and for those who dont here's a example

Code:

if {![isop $nick $chan]} {
      putserv "privmsg $chan :Blah"
      
   }


thats just a example Razz

and for to check if bot is op is this
Code:

if {![botisop $chan]} {
      putserv "privmsg $chan :Blah "
      
   }


this is very simple stuff, but for those who are new to tcl this might help Smile
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
willyw
Revered One


Joined: 15 Jan 2009
Posts: 1095

PostPosted: Wed May 20, 2020 12:08 pm    Post subject: Reply with quote

To be clear - those tcl commands do not check an access list maintained by Chanserv and/or Nickserv.

They check to see if a nick is currently op'd.

A nick MAY be op'd, without being on an AOP access list.

Here is an excellent reference, for Eggdrop related TCL commands:
https://docs.eggheads.org/mainDocs/tcl-commands.html
_________________
For a fun (and popular) Trivia game, visit us at: irc.librairc.net #science-fiction . Over 300K Q & A to play in BogusTrivia !
Back to top
View user's profile Send private message
ComputerTech
Op


Joined: 22 Feb 2020
Posts: 138
Location: Northern Ireland

PostPosted: Wed May 20, 2020 12:11 pm    Post subject: Reply with quote

True willyw my bad should have specified that
and hehe yep thats the link to check for it Razz

thanks again willyw
Very Happy


EDIT

hmm looking for the right command for checking the aop list cant quite find it
going to look again Razz and at the tclarchive Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail 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