| View previous topic :: View next topic |
| Author |
Message |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Mon Apr 27, 2020 4:27 pm Post subject: Check Access List Script |
|
|
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 Cheers  _________________ ComputerTech |
|
| Back to top |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Wed May 20, 2020 11:04 am Post subject: |
|
|
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
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  _________________ ComputerTech |
|
| Back to top |
|
 |
willyw Revered One
Joined: 15 Jan 2009 Posts: 1175
|
Posted: Wed May 20, 2020 12:08 pm Post subject: |
|
|
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 |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Wed May 20, 2020 12:11 pm Post subject: |
|
|
True willyw my bad should have specified that
and hehe yep thats the link to check for it
thanks again willyw
EDIT
hmm looking for the right command for checking the aop list cant quite find it
going to look again and at the tclarchive  _________________ ComputerTech |
|
| Back to top |
|
 |
|