Hi i'm making a kinda message thingy and it works ok cept if one person is named mike and another mike1 it reads both as mike. Here tis on *:text:*!review*:#:{ if ($2 == $null) { msg $nick review who? } if ($2 !isin $read(messages.txt,nw, *$2*)) { msg $nick $2 is not in my records } if ($2 != $null) { $read(messages.txt,nw, *$2*) } } messages.txt go like this msg $chan $2 said i tried *[$2]* that don't work either. any ideas?
on *:text:*!review*:#:{
if ($2 == $null) { msg $nick review who? | return }
var %i = 1
while $read(messages.txt,nw,$+(*,$2,*),%i) {
var %a = $ifmatch,%i = $readn + 1
if $istok(%a,$2,32) { %a | return }
}
msg $nick $2 is not in my records
}