This script is similar to the /broadcast script made before but can be used if you are not IRCop.
Syntax:
/mnotice #Chan ---- Sends a mass notice to everyone in #Chan
/mnotice AChan ---- Sends a Mass notice to everyone you are in contact with in ur channels.
Enjoy
alias mnotice {
if ($1 == $null) { echo $active 2* /mnotice: Not enough parameters. | halt }
if ($left($1,1) == #) { channelnotice $1 $2- }
if ($1 == AChan) { allChanNotice $2- }
}
alias channelnotice {
set %Total $nick($1,0)
set %Count 0
while (%Count < %Total) {
inc %Count
.notice $nick($1,%Count) [Mass Notice] $2-
}
unset %Count
unset %Total
}
alias allChanNotice {
set %TotalChans $chan(0)
set %CountChan 0
while (%CountChan <= %TotalChans) {
inc %CountChan
channelnotice $chan(%CountChan) $2-
}
unset %TotalChans
unset %CountChan
}
[quote=Korvin]
/notice #chan would be waaaaaay more sufficient. would be the same thing.
[/quote]
True but i also wanted to see if this wuld work. And im gonna set it so that you can specify nicks it wont notice using another variable.
@Jonesy44 Vars will just confuse me cos i\'ve used set for so long :D but i\'l try for next one.