Question about kickban concept - 31/12/02 09:45 PM
I have written a small alias that does a kick/ban of users from all channels where I have ops. I have set it up with multiple loops:
The first loop sets the channel ban on all channels where I have ops.
The second loop creates a list of common channels where I have ops (using $comchan).
The third loop goes through the 'cached' list created by the second loop and does the actual kicks.
(I needed to keep in mind that although we may have common channels, I might not have channel ops in all of them.)
My reasoning for doing this, is that if I only used $comchan and not cache that information first, then whenever I did the kicks wouldnt the $comchan list change as I'm going along?
The coding is not that hard to do, but thought I would get someone else's opinion on this.
Thanks!
Listner
The first loop sets the channel ban on all channels where I have ops.
The second loop creates a list of common channels where I have ops (using $comchan).
The third loop goes through the 'cached' list created by the second loop and does the actual kicks.
(I needed to keep in mind that although we may have common channels, I might not have channel ops in all of them.)
My reasoning for doing this, is that if I only used $comchan and not cache that information first, then whenever I did the kicks wouldnt the $comchan list change as I'm going along?
The coding is not that hard to do, but thought I would get someone else's opinion on this.
Thanks!
Listner