jeroen.se
by jnieuwen
counting the users in your irc channels
Yesterday someone in an irc channel I am in was trying to graph the current number of users in the irc channels he is in with Cacti. His problem was quite simple: How do I get the number of users out of my irssi? My default statement in those cases is: "Just script it. It can not be that hard."
And fortunately it is not. Although I was not able to complete the script in the estimated 15 minutes (Blame the GPRS coverage between apeldoorn and amersfoort), I did fix the script in 26 minutes. You can download the script here.
The usage is quite simple: Just load the script in irssi and set the output file to something usefull with /set usercountlog_file /where/you/want/your/file. And every minute or so the file is updated with the current number of users. The format of the file should be self explanatory.
0 comments

Nick:
Email:
Make your own addition with integers (needed to make sure you aint a spambot):
+ =
Categories
Cycling (2)
Gadgets (3)
Misc (22)
Scripting (23)
Travel (7)
Unix (24)
Archive
April 2010 (2)
January 2010 (1)
December 2009 (1)
November 2009 (2)
May 2009 (1)
April 2009 (1)
March 2009 (1)
February 2009 (7)
January 2009 (3)
December 2008 (1)
November 2008 (4)
October 2008 (5)
September 2008 (1)
August 2008 (3)
July 2008 (2)
June 2008 (2)
May 2008 (3)
April 2008 (1)
March 2008 (1)
February 2008 (1)
January 2008 (4)
December 2007 (1)
November 2007 (7)
October 2007 (4)
September 2007 (1)
August 2007 (2)
June 2007 (6)
May 2007 (8)