Basically this is a script that creates a log of people who joined and parted your channel, as well as quits and nick changes. Could be useful if you wanna know who visited your chat. This is written for a bot, so it logs visitors but not the bot's nick.
Update: Now writes to a directory called visitorlogs, and each channel has it's own log. Called "Channelname-log.txt".
Writes the log like this:
MaxEvans joined #Max-Chat on 03/18/2009 at 10:21pm.
MaxEvans parted #Max-Chat on 03/18/2009 at 10:21pm.
MaxEvans quit on 03/19/2009 at 09:44am.
MaxEvans[AFK] has changed his/her nick to MaxEvans on 03/21/2009 at 12:42pm.
on *:LOAD: {
/mkdir visitorlogs
}
on !*:JOIN:#: {
write visitorlogs/ $+ $chan $+ -log.txt $nick joined $chan on $date(mm/dd/yyyy) at $time(hh:nntt) $+ .
}
on !*:PART:#: {
write visitorlogs/ $+ $chan $+ -log.txt $nick parted $chan on $date(mm/dd/yyyy) at $time(hh:nntt) $+ .
}
on !*:QUIT: {
write visitorlogs/ $+ $chan $+ -log.txt $nick quit from $chan on $date(mm/dd/yyyy) at $time(hh:nntt) $+ .
}
on !*:NICK: {
write visitorlogs/ $+ $chan $+ -log.txt $nick has changed his/her nick to $newnick on $date(mm/dd/yyyy) at $time(hh:nntt) $+ .
}
I'm not familiar with hash tables yet. I'll look up tutorials and use them though. Everyone says they're better and faster.If you are interested in using them, here is a brief explanation: Hash tables are basically the combined .txt and .ini form of storing information--as Jethro_ said, they're fitting for logging joins/parts/nick changes/quits as hashes can store many bits of information at a time. However, it is only a temporary space of memory and the information disappears when you restart your computer; you would need to save the items put on the table into an alternative file on exit, then reload it again on start.
the only thing is if you get alot of people joining and parting it will fill up a txt or a ini file fast.
Yeah, I guess so. Even if you have a huge block of text, you can't do much with it.
MaxEvans: Maybe you can make a dialog that shows all the joins, parts, nick changes, quits, etc. Maybe have this script make a separate folder (like 'logz' or something), and have each .ini file save there, and perhaps have the dialog show each join/part/nick/quit message for each channel.