Hi guys

Inside the readserv.txt file I have:
Quote
Access list for #Portugal
1 VOP CoOLbiT
2 VOP Koragg
3 VOP Silver_Surfer
4 VOP Corvus
5 VOP PatoBravo
6 QOP TECO
7 QOP James_Bond
8 VOP Fox
9 VOP RSSBot
10 VOP Mastodon
11 QOP James
12 VOP nuke
13 VOP Oasis_
14 AOP Security
15 VOP RadioBot RĂ¡dio oficial da PTirc

And I have this example code:
Code
alias test {
  if ($1) {
    var %q $read(readserv.txt, w, $+(*,$1,*), 3), %k $readn
    if (%k) echo -sg --> $gettok(%q,2-3,32) $gettok(%q,4-,32)
  }
}

But when I type: /test james, the result should be: --> QOP James, but what it returns is: --> QOP James_Bond

Another example, if I type: /test silver, it shouldn't return anything, but it returns: --> Silver_Surfer

Can anyone figure out what the problem is and what the solution is?

I appreciate anyone who can help wink


TECO
irc.PTirc.org (Co-Admin)