mIRC Home    About    Download    Register    News    Help

Print Thread
#12614 23/02/03 08:23 AM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
Ok, I have my bot checking to see if a users hostmask matches any entries in the data\ignorelist.db file. If the hostmask matches the entries, the bot ignores them. Like so:

Code:
  if ($nick == $me) { halt }
  set %ignorelines $lines(data\ignorelist.db)
  set %t 1
  while (%t <= %ignorelines) {
    tokenize 32 $gettok($read(data\ignorelist.db,%t),1,32)
    if ($1 iswm $fulladdress) { halt }
    inc %t
  }


Now the problem is, is that I dont want it checking via *$hostmask* , like the iswm command does. i want it to only check via where the wildcard entries are. Like say theres an entry for *@a12*msn*.com. I want it to match a123msn2.com to that instead of matchin ba123msn2.com to it, like iswm would do.

Is there anyway to do that?

#12615 23/02/03 10:30 AM
Joined: Dec 2002
Posts: 1,321
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Dec 2002
Posts: 1,321
*@a12*msn*.com does not match userid@ba123msn2.com

if (*@a12*msn*.com iswm nick!userid@ba123msn2.com) is false.


DALnet: #HelpDesk and #m[color:#FF0000]IR[color:#EEEE00]C
#12616 23/02/03 06:36 PM
Joined: Dec 2002
Posts: 111
E
Vogon poet
OP Offline
Vogon poet
E
Joined: Dec 2002
Posts: 111
oh wait lol i was thinkin of somethin else and was confused on why iswm was matching E to E* , i forgot that a wildcard can also contain nothing at all


Link Copied to Clipboard