txdv has quit [Read error: Connection reset by peer]
txdv has joined #cinch
Cinchy has quit [Remote host closed the connection]
Cinchy has joined #cinch
postmodern has joined #cinch
robotmay has quit [Remote host closed the connection]
lagweezle has quit [Quit: No. No! Oh god, no! Not again! NOOOOooooo!]
lagweezle has joined #cinch
julian-dephiki has joined #cinch
<julian-dephiki>
So, I have a bot that I use to email users that are away on my company's IRC server -- the only way I've found to reliably detect if a user is away is to have my ZNC bouncer set all of their nicks to %nick%|away and then the bot looks for the |away and does some magic to send them emails
<julian-dephiki>
if I /whois people, it shows that they're away
<julian-dephiki>
and it returns a 301 which appears to be defined as RPL_AWAY in constants.rb
<julian-dephiki>
Whenever I try User("nick|away").away it doesn't sync the away attribute and errors out
<julian-dephiki>
Any ideas?
<waxjar>
i think most clients put you on away if you're inactive for x seconds
<waxjar>
you can look at the idle time, see if it's above a certain treshold
<julian-dephiki>
I see in my cinch log "301 EmailBot2 nick|away :Auto away at Fri Feb 1 23:20:42 2013" when it does a whois on the user.
<julian-dephiki>
Idle time would be okay, except for some people idle for quite some time
<waxjar>
i think you can do User#whois and then check for the away attribute, not sure though.