---It's up to them to use the code in good manner---
if they spam they get kicked as per server rules depending which network they are on...
There's several ways you can pm everyone in the channel you are on and this is the code
#1 you need a loop and a calculation of people in the current channel
$nick(#,0) will give us total now we must create a loop from 1 to X number of people in the channel and from 1 to x amount put an indicator that your going small to big or equal too its like math back in school, one of the simplest ways to do this is like this
%x = 1
while (%x <= $nick(#,0)) { perform command here + increment }
so you wanna autoPM everyone in a specific chan correct?
well you can create an alias to where you execute the command everytime you wanna pm everyone like...
alias autopm {
var %x = 1
while (%x <= $nick(#,0)) {
msg $nick(#,%x) $1-
inc %x
}
}
basically what I did is create an alias where you type /autopm msghere and it will message everyone in the channel you typed that with any message you type after /autopm
next for example if you want the Operators of the channel to have a specific command so they could message the whole channel privately you would do something similar to this...
on @:TEXT:*:#:{
if ($1 == !pm) {
var %x = 1
while (%x <= $nick(#,0)) {
msg $nick(#,%x) $2-
inc %x
}
}
}
basically in that command an op types !pm Hello everyone you will say hello to everyone in the channel
there's many methods of doing this but you have the basic concept of what needs to be done.