mIRC Home    About    Download    Register    News    Help

Print Thread
#150547 05/06/06 06:41 AM
D
D00M
D00M
D
hey guys and girls,im looking for a little editing help,
iv been using this script that i had help with from schaefer31 HERE (thanx again mate) on this forum,
script has been working great but the chan has changed the format of new announcements(again).
Iv tried to edit it but for some reason i have broken the filters,its not blocking the languages anymore,

Code:
on 10:TEXT:*:#CHAN:{
  var %p = /^\[-PRE-\]-\[(?:DVD-R|SVCD|VCD|XviD|XBoX|XBox360|PS2|PSP|Games|Anime|Covers|Dox|0-Day)\]-\(.+\)$/iS
  var %n = /^\[-NUKE-\]-\(.+\)-\(.+\)$/iS
  var %u = /^\[-UNNUKE-\]-\(.+\)-\(.+\)$/iS
  var %noshow = /(?:test|french\.|\.french\.|\.french-|\_french\_|\_french-|\.swedish\.|\.swedish-|\.danish\.|\.danish-|\.german\.|\_german\_|\.german-|\.germany\.|\.der\.|.\russian\.|\.russian-|\.spanish\.|\.spanish-|\.belgian\.|\.belgian-|\.dutch\.|\.dutch-|\.czech\.|\.czech-|\.greek\.|\.greek-|\.italian\.|\_italian\_|\.italian-|\.portuguese\.|\.iceland\.|\.iceland-|\.japan\.|\.japan-|\.norwegian\.|\.norwegian-|\.nordic\.|\.nordic-|\.holland\.|\.holland-|\_holland\_|\.hungarian-|\.hungarian\.|\.hundub-|\.hundub\.|\_Hungarian-|\_Hungarian\_|\.hentai\.|\.hentai-|\.fansubbed\.|\.fansubbed-|\.fansubbed_|\.fansub\.|\.finsub\.|\.heb\.|\.swe\.|\.swesub\.|\.swesub-|\.norsub\.|\.plsub\.|.\kordub\.|korsub\.|\.czsub-|\.nlsubs\.|\.subfrench\.|\.pldub\.|\.pldub-|\.custom\.|\.es-|\.jp\.|\.jap\.|\_jap\_|\.jpn\.|\_jpn\_|\_jp\_|\-jpn\-|\.nl\.|\.sp\.|\.fr\.|\.pl\.|\.pl-|\.kor\.|\-fr\-|\.satrip\.|\.xxx\.|\.mp3\.)/iS
  if ($regex($1-,%p) || $regex($1-,%n) || $regex($1-,%u)) {
    if (!$regex($4,%noshow) && !$regex($2,%noshow)) {
      if (!$window(@Pr3INFO)) window -ng[2] @Pr3INFO
      aline @Pr3INFO [[ $+ $asctime(h:nn) $+ ]] $1-
    }
  }
}



the format is,

[-PRE-]-[DVD-R]-(BlahBlahBlah.DVDR-Group)
[-PRE-]-[SVCD]-(BlahBlahBlah.SVCD-Group)
[-PRE-]-[XviD]-(BlahBlahBlah.DVDRiP.XViD-Group)

The bot has a level of 10 and its been added to my users list so it will only look for the bots announcements and not any1 else.
That is all working fine but when i edited it to match the new format it broke the filters and now its not blocking anymore so any help and tell me what i did wrong it would be great,TIA smirk

#150548 06/06/06 08:03 AM
D
D00M
D00M
D
heheh owell after 50+ views i guess none can help me,i will just keep trying to get it right,thanx anyway guys and girls for taking the time to read crazy

#150549 06/06/06 08:54 AM
Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
It would help if you post how the languages will appear in the announcements.

#150550 06/06/06 09:49 AM
D
D00M
D00M
D
hey Mpdreamz,thanx for the reply,the new format is now

Code:
[-PRE-]-[DVD-R]-(BlahBlahBlah.DVDR.ITALIAN-Group) 
[-PRE-]-[SVCD]-(BlahBlahBlah.German.SVCD-Group) 
[-PRE-]-[XviD]-(BlahBlahBlah_FRENCH_DVDRiP_XViD-Group)
[-NUKE-]-(BlahBlah.German.DVDRiP.XViD-Group)-(Reason.its.nuked)
[-UNNUKE-]-(BlahBlah.German.DVDRiP.XViD-Group)-(Reason.its.UnNuked)


sometimes the releases have _ in the release name or - so its not always just blahblah.German.DVDR-Group (hence all the filters in the code above),im pretty sure the prob is in the pre line as the filter line was working fine till i changed the pre line,it echo's the groups i want just doesnt block with the filters anymore,hope that helps ya's out some.

#150551 06/06/06 02:56 PM
Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
Nearing the end of the day at work now ill code something up when im home and stuffed my face with food :P

#150552 07/06/06 07:31 AM
Joined: Apr 2004
Posts: 755
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Apr 2004
Posts: 755
Code:
..
    if (!$regex($4,%noshow) && !$regex($2,%noshow)) {
..


change that too

Code:
..
    if (!$regex($1-,%noshow) && !$regex($1-,%noshow)) {
..


As i dont think the previous could ever be true since there is no $4 or $2 leading the regex match to always be false.

#150553 07/06/06 04:33 PM
D
D00M
D00M
D
That did the trick,nice spot Mpdreamz cool,the filters are blocking again and it seems to be all working fine so far ( fingers crossed :tongue: ),thanx again for your help mate in pointing out the error ( its all a learning curb grin )


Link Copied to Clipboard