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.

Check Access List Script

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Check Access List Script

Post by ComputerTech »

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 :D Cheers ;)
ComputerTech
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

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

Code: Select all

if {![isop $nick $chan]} {
		putserv "privmsg $chan :Blah"
		
	}
thats just a example :P

and for to check if bot is op is this

Code: Select all

if {![botisop $chan]} {
		putserv "privmsg $chan :Blah "
		
	}
this is very simple stuff, but for those who are new to tcl this might help :)
ComputerTech
w
willyw
Revered One
Posts: 1197
Joined: Thu Jan 15, 2009 12:55 am

Post by willyw »

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 !
User avatar
ComputerTech
Master
Posts: 399
Joined: Sat Feb 22, 2020 10:29 am
Contact:

Post by ComputerTech »

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

thanks again willyw
:D


EDIT

hmm looking for the right command for checking the aop list cant quite find it
going to look again :P and at the tclarchive :D
ComputerTech
Post Reply