mIRC Home    About    Download    Register    News    Help

Print Thread
problem with wildcards #179761 27/06/07 08:35 PM
Joined: Oct 2006
Posts: 23
F
Frenatic Offline OP
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.
Re: problem with wildcards [Re: Frenatic] #179762 27/06/07 08:52 PM
Joined: Dec 2002
Posts: 3,547
S
SladeKraven Offline
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
    }
  }
}


Re: problem with wildcards [Re: SladeKraven] #179763 27/06/07 09:07 PM
Joined: Oct 2006
Posts: 23
F
Frenatic Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Oct 2006
Posts: 23
sorry, typo :p

but it worked so thanks smile