mIRC Homepage
Posted By: Frenatic problem with wildcards - 27/06/07 08:35 PM
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
Posted By: SladeKraven Re: problem with wildcards - 27/06/07 08:52 PM
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
    }
  }
}

Posted By: Frenatic Re: problem with wildcards - 27/06/07 09:07 PM
sorry, typo :p

but it worked so thanks smile
© mIRC Discussion Forums