%getnews !news
%news NEWS NEWS NEWS | Server back up sometime today | Town meeting likely | Xplict loves pie | Don't Reply to this |
%ID Please identify with the server before requesting news. Syntax: /msg NickServ Identify <PASSWORD> If you have already identified then you are not on the access list for todays news.
%friend icedevil tsakos[/code]
I adjusted the code to cover sending the %ID out if your not voiced. It sends %ID if u are in the %friend list but not a 3, So you might want to remove the last sentence on the %ID I dont know?!?!?
on *:text:%getnews:#:{
if ($istok(%friend,$nick,32)) {
msg NickServ status $nick
set -u5 %friend.news $true
}
}
on *:notice:STATUS & &:?:{
if ((%friend.news) && ($nick == Nickserv) && ($istok(%friend,$2,32))) {
if ($3 == 3) { msg $2 %news }
else { msg $2 %ID }
}
}
Thanks Iori for fixing my typoes, I thought it was & but was getting tired and didnt want to risk putting it in on a guess, Oh and yes it was a rather hard night out.