Skip to content
General Chat Talk

Nick Logger

A TG007 community discussion started by JOhnson.

Discussion 30 posts
Page 1 of 2
Open
Topic #13303 · 30 published posts · 5,806 views
:oops: I dont know how to ask this question or even explain it :lolwave: ... is there a nick logger for SPCN (sparkpea) that will tell the room the last 5 nicks like moschino's got in his connection for buzzen ... iv looked about the tg007 msn archives / mirc script rooms and I cant find a nick logger that does as I requested ... as always nais tuke = thank you for all replys and help on this one :D

like to log the last 5 people that have joined

 

 

or to show if they ahd a different nickname when they joined/

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

Be a little more specific with what your intentions are and i'd see if I can help you

The Internet: where men are men, women are men, and children are FBI agents.

:lmaojump: told you I didnt explain it right :oops: ... ok let me see if I can explain it a bit better so you might be able to help me ... im in buzzen %#IRCommunity Room and iv got my script in there using moschino's connection and in his connection he has a nick logger that will tell you in your mirc script and also it will allow you to show the nick's in the room (still with me) :D of the last five nicks that someone has used i.e J0hnson Billy joey tommywentthere timmyhasitall and final me lol n00b :P have I explained myself better .... as always nais tuke for all replies :D

So in other words you are on two separate networks, and you want a logger that will echo the active window the last 5 people who joined your room on the other network?

I think I get what you are saying... pretty much you would like to know the last 5 names a certain user has used on that one gate? Are you sure you searched the Buzzen addons thoroughly? I've made something sort of like which is a GateLogger... all you would have to do is create a nicklist menu or add some to the on join to check each user when they join.

The Internet: where men are men, women are men, and children are FBI agents.

He wants a nick logger for SPCN ...

 

JOhnson, does SPCN have any script support? A nick logger can typically be used on any network. Sorry, mine is built into SoulFly.

Well actually I made my gatelogger to work on both Buzzen and SparkPea...

The Internet: where men are men, women are men, and children are FBI agents.

Hopefully this version will work for you.

This will store last 5 nicks but will ignore it if it just adds a number to the end like buzzen does for ghost nicks.

One other thing.. I'm not sure if you want to ignore guest nicks. I do but i left out the ignore for them in the code in case you want to log those as well. If you do just add it to the halt.. I did very minimal testing on this but it did work for me.

Logging Channel and Messaging channel is per channel basis set in channel menu. You can Remove or View the log from there as well.

menu channel {
    History
    .$iif($istok(%History.Log,$chan,44),$style(1)) $chan : $iif($istok(%History.Log,$chan,44),set %History.Log $remtok(%History.Log,$chan,1,44),set %History.Log $addtok(%History.Log,$chan,44))
    .$iif($istok(%History.Msg,$chan,44),$style(1)) Message : $iif($istok(%History.Msg,$chan,44),set %History.Msg $remtok(%History.Msg,$chan,1,44),set %History.Msg $addtok(%History.Msg,$chan,44))
    .$iif(!$isfile(history.txt),$style(2)) Remove Log File : /remove -d history.txt
    .View Log File : /run history.txt
  }
  on !*:JOIN:#:{
    if ((!$istok(%History.Log,$chan,44)) || (%History.Join)) halt
    set -eu2 %History.Join on
    if ($ial($nick  *,1).addr == $gettok($read(history.txt, w,*  $ial($nick  *,1).addr  *),1,32)) {
      var %hs 1
      var %his $gettok($read($mircdirhistory.txt,$readn),2,32)
      while ($gettok(%his,%hs,44)) {
        if ($gettok(%his,%hs,44) isin $nick) { set %samenick $nick }
        inc %hs
      }
      if (%samenick != $nick) {
        if (!$istok($gettok($read($mircdirhistory.txt,$readn),2,32),$nick,44)) { 
          if ($istok(%History.Msg,$chan,44)) { .msg $chan $nick has made a nick change. Previous $iif($gettok($gettok($read($mircdirhistory.txt,$readn),2,32),2,44),nicks have been,nick was) $sorttok($gettok($read($mircdirhistory.txt,$readn),2,32),44,c) }
        }
        if ($numtok($gettok($read($mircdirhistory.txt,$readn),2,32),44) >= 5) { write -l $readn $mircdirhistory.txt $ial($nick  *,1).addr $addtok($deltok($gettok($read($mircdirhistory.txt,$readn),2,32),1,44),$nick,44)  }
        else { write -l $readn $mircdirhistory.txt $ial($nick  *,1).addr $addtok($gettok($read($mircdirhistory.txt,$readn),2,32),$nick,44) }
      }
    }
    else { 
      if ($istok(%History.Msg,$chan,44)) { .msg $chan Haven't seen you before $nick ( logged ) }
      write $mircdirhistory.txt $ial($nick  *,1).addr $nick
    } 
    unset %samenick
  }

Edited Aug 22, 2009 10:34 PM by err0r

Get information about ircWx here

:lmaojump: ok nais tuke = thank you for all your replies im very grateful for you help on this one and no disrepect to anyone else but iv gone with err0rs code at the moment (at the moment) :lolwave: ... the only way I can explain myself err0r is to show you via screen shots and I hope iv explained myself well enough for you to follow what im trying to explain.Thank you for the code im messing with it at the moment :D

 

post-27425-1251011861_thumb.jpg post-27425-1251011874_thumb.jpg

 

post-27425-1251011890_thumb.jpg post-27425-1251011903_thumb.jpg

Attachments 4 files

do u not find that text very hard to read on that background?

Spam Honeypot - http://www.haggistech.co.uk/honey(humans do not register)

do u not find that text very hard to read on that background?

 

:lmaojump: NO fella its something iv got used to but thanks for asking :D

Just thought I would post this nickdetector code I found on one of my old pen drives .... havent a clue who scripted it but it works as far as giving the last nick change and it also logs all nicks that join the room in a user.txt in the main directory of mirc .... x-c0n I did try yours fella and yes it does store the nicks but it wont show them in the room :( maybe im doing something wrong lol but at the moment lol im messing up err0rs history code :P iv also been messing with the nickdetector code to see if I can get it to read the last five nick changes :D (wish me baxto = luck)

 

NickDetect On
on *:join:*:{ 
  if ($nick == $me) halt 
  if (!$read(users.txt,w,* $+ $address($nick,1) $+ *)) { 
    write users.txt $address($nick,1) $nick 
    privmsg 
  } 
  else { 
    if ($read(users.txt,s, $address($nick,1)) != $nick) { 
      msg $chan $replace($nick,>,Guest_) You where previously knows as $replace($ifmatch,>,Guest_) 
      write -l $+ $readn users.txt $address($nick,1) $nick 
    } 
  } 
} 
#NickDetect End

one of these days am going to pop over to your house johnson and fix your scripts lol

My code does NOT have bugs. It just develops random features.

one of these days am going to pop over to your house johnson and fix your scripts lol

 

 

:lmaojump: you knows you would be always WELCOME .... dont forget the tetleys bitter :P

Yea it will store everyones name and when they change names it will add it the the same gate... you would just have to add in an echo for it to show you.

The Internet: where men are men, women are men, and children are FBI agents.

I think it'd be best to use hash tables instead of text file for scripts like nick logger...it could get quit big in size over time in your hard drive.

Edited Aug 23, 2009 6:32 PM by Fanfare
Yea it will store everyones name and when they change names it will add it the the same gate... you would just have to add in an echo for it to show you.

 

:lmaojump: will look at that fella ... as always x-cOn nais tuke = thank you for the code fella :D

I think it'd be best to use hash tables instead of text file for scripts like nick logger...it could get quit big in size over time in your hard drive.

 

:oops: missed your reply Fanfare ... im not good enough to do hash tables fella im still learning so I stick with what I know ... but who knows fella one day I will :D

I think it'd be best to use hash tables instead of text file for scripts like nick logger...it could get quit big in size over time in your hard drive.

 

I thought so too, but I decided to use ini files for this. The table was too big and held too much unused information.