save and search nicks
Platform: mIRC
Published Jul 04, 2011
Updated Jul 05, 2011
ok its my first script with the use of ini, so b kind :)
it saves nicks on join and you can manually add nicks to it.
removal of a nick is included
show nick info that was saved (address and last seen on the channel with time)
search for a nick (then it shows the same info as above)
feel free to comment and to say suggestions, we all need to learn :)
edit:
added join,parts,quits (this goes automatic) so the ini will always change when nicks join, part and so on...
you can still add nicks with the savenick with the text added on ...
tnx to punktured for the help :)
menu * {
savenicks
.$iif(!%sv,on,off) savednick: $iif(!%sv,inc,unset) %sv
.savednicks
..savenick: $ohn($$1).1
..delnick: $ohn($$1).2
..seeinfo: $ohn($$1).3
..search: $ohn
}
alias ohn {
if ( %sv ) {
if ($prop = 1) {
writeini -n savednick.ini $1 ip $address($1,2) added on $fulldate
}
elseif ($prop = 2) { remini -n savednick.ini $1 }
elseif ($prop = 3) { echo -a ---> $readini(savednick.ini, $1,ip) <--- }
elseif ($prop = 4) {
var %ohnevent = $iif($event = join,joining $chan, $iif($event = nick,changing nick to $newnick,leaving the server))
writeini -n savednick.ini $1 ip $address($1,2) last seen %ohnevent on $fulldate
}
else {
var %nick $$?="searching for who?"
echo -a ---> $readini(savednick.ini, %nick, ip) <---
}
}
}
on *:JOIN:#: { $ohn($nick).4 }
on *:PART:#: { $ohn($nick).4 }
on *:QUIT: { $ohn($nick).4 }