This is a simple script which can perform an action to every user on a given channel.
Basically, it's an advanced mass slap script.
Use the script by typing: /massaction.
alias massaction { dialog -m massaction massaction }
dialog massaction {
title "Mass Action Script"
size -1 -1 170 110
text "Channel:", 1, 10 10 50 12
edit "", 2, 60 7 100 20
text "Action:", 3, 10 37 50 12
edit "", 4, 60 34 100 20
text "", 5, 10 59 180 12
button "Do it!", 6, 10 81 65 22
}
on *:DIALOG:massaction:*:*:{
if ($devent == init) { did -a $dname 5 * $me $iif($did($dname,4,1).text,$did($dname,4,1).text $+ s,<action>) <nick> }
if ($devent == edit) { did -a $dname 5 * $me $iif($did($dname,4,1).text,$did($dname,4,1).text $+ s,<action>) <nick> }
if ($devent == sclick && $did == 6) {
var %loop = $nick($did($dname,2,1).text,0)
while %loop { describe $did($dname,2,1).text $did($dname,4,1).text $+ s $nick($did($dname,2,1).text,%loop) | dec %loop }
}
}