mIRC Home    About    Download    Register    News    Help

Print Thread
save ident nick ip #267402 25/06/20 10:29 PM
Joined: Nov 2014
Posts: 26
N
nexux Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2014
Posts: 26
Code
on *:TEXT:ww w .*:#paraguay:/mode #paraguay +b $nick | /kick #paraguay $nick Molestias continuas en la sala. Spam


I did this for my protection in the room, but I would like to record the ident and the nick and the total ip of the nick in a text file

Then, when entering a nick, check in a file if that nick, ident, or total ip of the nick is in the file and ban and kikear

Is that feasible?

I try my code

Quote
on *:TEXT:*perro*:#pruebapy:
{
mode # +b $nick
write texto.txt $nick
}

Last edited by nexux; 25/06/20 11:12 PM.
Re: save ident nick ip [Re: nexux] #267411 28/06/20 12:18 AM
Joined: Nov 2014
Posts: 26
N
nexux Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2014
Posts: 26
Any help?

Quote

$read(text.txt,nt,3) 3
if $address($nick,2) isin $readline {}
else {
inc %lineaincremento
}



set %contador 1
Set %blabla $read(text.txt,nt,%lineaincremento)
if $address($nick,2) isin blabla { Lo que quieras hacer }
else {
inc %lineaincremento
}




set %totalline $lines(readme.txt)
while (<condition>) {
;Code here will be executed
}
while (<condition>) {
;Code here will be executed
}
while ( %contador < totalline ) {
set %contador 1
Set %blabla $read(text.txt,nt,%lineaincremento)
if $address($nick,2) isin blabla { Lo que quieras hacer }
else {
inc %lineaincremento
}
}
%totalline

Re: save ident nick ip [Re: nexux] #267412 28/06/20 12:27 AM
Joined: Nov 2014
Posts: 26
N
nexux Offline OP
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2014
Posts: 26
Quote

on +1:text:*perro:#paraguay:{

write C:\Users\Yo\AppData\Roaming\mIRC\texto.txt $nick $address($nick,1) $address($nick,2) $address($nick,3) $1-
/mode #pruebapy +b $nick | /whois $nick | /kick #paraguay $nick Molestias continuas en la sala. Spam
}