Jump to content

Archived

This topic is now archived and is closed to further replies.

chain

save and search nicks

Recommended Posts

  • Administrators

save and search nicks

 

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)  $readini(savednick.ini, %nick, ip) 

Link to comment
Share on other sites



×
×
  • Create New...