hi i am working on a script and have a small problem

heres the script



on *:text:*NEW*IN*:#pred: {
var %section = $left($strip($3), $calc($len($strip($3))-1)))
var %rls = $strip($remove($5,[,])))
if (($nick == pre)) && ((bot == $me)) {
if (Wii isin %section) { goto WII }
if (XBOX360 isin %section) { goto XBOX360 }
else { goto end }

:Wii {
if (-RELOADED || -Razor1911 || -DEViANCE || -ADDICTION || -RECHARGED || -GGS || -FASiSO|| -JFKPC || -ViTALiTY || -FLT || -PROCYON || -HATRED || -POSTMORTEM || -OVERDUE || -QUARTEX || -GGS isin %rls) { goto section }
if (DVDR isin %rls) { goto section }
if (MDVDR isin %rls) { goto section }
if (*VCD* iswm %rls) { goto section }
if (NDS isin %rls) { goto section }
if (XBOX360 isin %rls) { goto section }
if (VCD isin %rls) { goto section }
if (MVID isin %rls) { goto section }
if (PS2 isin %rls) { goto section }
if (PDA isin %rls) { goto section }
if (*TV* iswm %rls) { goto section }
if (XVID isin %rls) { goto section }
if (*XXX* iswm %rls) { goto end }
if (CD1 isin %rls) { goto end }
if (CD2 isin %rls) { goto end }
if (sample isin %rls) { goto end }
if (covers isin %rls) { goto end }
if (PS3 isin %rls) { goto section }
if (PSP isin %rls) { goto section }
if (covers isin %rls) { goto end }
var %text = $strip($1-))
var %filename = console.txt
var %filelines = $lines(%filename)
var %found = 0, %foundline, %matched, %i = 1
while (%i <= %filelines) {
var %readfile = $read(%filename,%i)
if (%readfile isin %text) { %found = 1 | %foundline = $readn | %matched = %readfile }
inc %i
}
if (%found == 1) {
msg #pred 4=[0NUKE WARNING4]= 4[CHECK RULES!! NOT ALLOWED IN WII ] =[8 $strip($remove($5,[,]))) 4]= =[0 30 SECONDS TILL NUKE X3 4 ]=
.timer $+ wii-nuke 1 30 msg #pred !nuke $strip($remove($5,[,]))) 3 CHECK.RULES.NOT.ALLOWED
echo -d Nuking WII $strip($remove($5,[,]))) for CHECK RULES NOT ALLOWED at $time on $day
}
if (%found == 0) {
goto end

:section
msg #pred 4=[0NUKE WARNING4]= 4[WRONG SECTION NOT ALLOWED IN %section ] =[8 %rls 4]= =[0 30 SECONDS TILL NUKE X3 4 ]=
.timer $+ section-nuke 1 30 msg #pred !nuke %rls 3 WRONG.SECTION
echo -d 9Nuking %section %rls for :section WRONG SECTION at $time on $day

:end


ok this works pefect with no problems..however when i try to add a new section such as xbox underneath what i ahve ..it automatically goes straight to wrong section when it shouldnt..any ideas would be great thx

Last edited by chump; 31/03/07 07:18 PM.