Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
brain-tools/dasbrain/cswhy-1.0.tm
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
37 lines (27 sloc)
898 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Brain-Tools | |
| # Copyrigt DasBrain @ #John @ irc.quakenet.org | |
| # File: cswhy-1.0.tm | |
| # Asks chanserv what access someone has when they get ops from ChanServ. | |
| # Designed for use with Atheme. | |
| # Configs: | |
| package require eggdrop 1.6 | |
| package require Tcl 8.5 | |
| package provide dasbrain::cswhy 1.0 | |
| namespace eval ::dasbrain::cswhy { | |
| } | |
| setudef flag cswhy | |
| bind mode S "% +o" ::dasbrain::cswhy::onmode | |
| bind notc S * ::dasbrain::cswhy::onnotice | |
| proc ::dasbrain::cswhy::onmode {nick uhost hand chan mc target} { | |
| if {[channel get $chan cswhy]} { | |
| putserv "CS WHY $chan $target" | |
| } | |
| } | |
| proc ::dasbrain::cswhy::onnotice {nick uhost handle msg target} { | |
| if {[regexp {has flags \002[^\002]+\002 in \002([^\002]+)\002 } $msg - chan] | |
| || [regexp {has no special access to \002([^\002]+)\002} $msg - chan]} { | |
| if {[channel get $chan cswhy]} { | |
| putnotc @$chan $msg | |
| } | |
| } | |
| } |