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.
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
}
Get information about ircWx here
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)
... 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 ![]()
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)
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
iv also been messing with the nickdetector code to see if I can get it to read the last five nick changes
(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.
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.
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.
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 ![]()
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.
Sign in to reply or start a new topic where your account has permission.



