mIRC Home    About    Download    Register    News    Help

Print Thread
#179761 27/06/07 08:35 PM
Joined: Oct 2006
Posts: 23
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Oct 2006
Posts: 23
first you trigger the script with '!filmtips', but I want the script to only accept strings that begins with 'http://imdb.com/' (example: http://imdb.com/title/tt0112281/).

how do I ad a proper wildcard?


this is what i got:
Code:
on *:TEXT:*:#: { 

if ($1 == !addfilmtips) {

    if ($2 == http://imdb.com/) || ($2 == URL) {

      booooring code

   }
}


EDIT: typo

Last edited by Frenatic; 27/06/07 09:09 PM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
If $2 is !addfilmtips then $2 can't possibly be http://imdb.com/.


Code:
ON *:Text:*:#: {
  if ($1 == !addfilmtips) || ($1 == URL) { 
    if (http://imdb.com/* iswm $2) {
      booooring code
    }
  }
}


Joined: Oct 2006
Posts: 23
F
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Oct 2006
Posts: 23
sorry, typo :p

but it worked so thanks smile


Link Copied to Clipboard