mIRC Home    About    Download    Register    News    Help

Print Thread
#250638 24/01/15 11:38 PM
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
So i'm trying to use an IP scanner for an auto-voice script based off of IP's instead of nicknames, but I can't seem to get the isin identifier to find the ip in the text document. I simplified the code to the following alias
Code:
alias test {
    if ($2 !isin goodips.txt) { echo -a $1 $2 | return }
    echo -a checked $1 $2
}

If my text file looks like

then i try
/test test 1.1.1.1
it echos as "test 1.1.1.1" instead of "checked test 1.1.1.1"
i used this method before in >7.36, but now it seems to not work. Is there an alternative for this or an alternative for storing AND checking the ip's?


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball
judge2020 #250639 25/01/15 12:25 AM
Joined: Sep 2014
Posts: 259
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Sep 2014
Posts: 259
You need to use $read. I'm pretty sure "goodips.txt" on its own will just be evaluated as a string smile

Sakana #250661 25/01/15 08:46 PM
Joined: Mar 2014
Posts: 215
J
Fjord artisan
OP Offline
Fjord artisan
J
Joined: Mar 2014
Posts: 215
thanks, works


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball

Link Copied to Clipboard