~~~proposed script for ranking conversation stoppers in an irc channel~~~~


suck in the last 500 or so lines of irc room

prevTime = false
humans = array()

for each line
    if message from human
        newTime = time of message
        newName = name of human
        if (time and newName!=prevName)
            silence = newTime-prevTime
            humans[prevName][] = silence
        end if
        prevName = newName
        prevTime = newTime
        do nothing
    end if
end for each

for each item in humans as name => silences
    avgSilence = average of all silences
    humans[name] = avgSilence
end for each

sort humans by avgSilence

print list of names and associated average silences after they comment in irc


Real Time Web Analytics