Part Message And Counter

Platform:  mIRC
Published  Jun 09, 2010
Updated  Jun 09, 2010
When someone parts this will say a message and tell the number of people that have parted. Have fun. :) on *:PART:#:/inc %Counter | /msg $chan Everyone, $nick has partted. He/she is number %counter to leave the channel.


Sign in to comment.
Jethro   -  Jun 10, 2010
Bielie, I don't know where you get the idea for the quit event with a # prefix to it. There's no $chan in the quit event. You either need to put the #chan by itself or loop through the $comchan:
Bielie   -  Jun 10, 2010

I found this one on one of my old bots.

PATX   -  Jun 09, 2010
Don't IRC clients already do this? Not sure if I am thinking of the same thing...

Can't rate/comment until I know this...
Jethro   -  Jun 09, 2010
You overlooked a couple of factors:

1. You don't want to count the client that runs the code by adding an exclamation mark in front of that part event.

2. If the same person parts repeatedly, it'll keep on counting. You should use a dynamic variable to identify who has parted and count the time exclusively for that user.

In fact, I think it's best to use hash tables for the counting task:

Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.