eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

Addition of achannels

Open crazycatdevs opened this issue 3 years ago • 0 comments

Allows to list channels with a particular flag enabled

Found by: CrazyCat Patch by: CrazyCat

One-line summary: Allows to list channels with a particular flag enabled

Additional description (if needed): Add the tcl command achannels [flag]

  • if flag is ommited, returns [channels]
  • if flag is not a channel flag (or doesn't exists), returns an error
  • else, returns channels with flag enabled

Test cases demonstrating functionality (if applicable):

  • channel #test has +test flag (user defined), -inactive and +greet
  • channel #eggdrop has -test, -inactive and +greet
.tcl achannels dummy
Tcl error: dummy is unknow or not flag attribute
.tcl achannels test
Tcl: {#test}
.tcl achannels inactive
Tcl: 
.tcl achannels greet
Tcl: {#test} #eggdrop

crazycatdevs avatar Oct 18 '22 10:10 crazycatdevs