dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.5
djbkd has quit [Quit: My people need me...]
<leftylink> race! to find cinch acl thing
<dominikh> Mathetes repo on my github account, the cinch_rewrite branch :P
<leftylink> ... ok I had an unfair advantage
<dominikh> you'd think I was the one with the unfair advantage :P
<leftylink> I knew I was going to call the race and gave myself a head start on it, heh
Liothen has quit [Ping timeout: 276 seconds]
ChasedSpade has quit [Ping timeout: 272 seconds]
al2o3-cr has joined #cinch
<al2o3-cr> Is it possible to send bold/colored text back to irc?
<al2o3-cr> using escaped codes of some sort?
<al2o3-cr> dominikh: ok, thank you will take a look
proxnal has quit [Ping timeout: 240 seconds]
proxnal has joined #cinch
Liothen has joined #cinch
sarkyniin has joined #cinch
al2o3-cr has left #cinch ["the quieter you become, the more you are able to hear"]
apt-get_ has joined #cinch
sarkyniin has quit [Ping timeout: 265 seconds]
apt-get__ has joined #cinch
apt-get_ has quit [Ping timeout: 256 seconds]
apt-get__ has quit [Quit: Quit]
rikai has quit [Ping timeout: 265 seconds]
postmodern has joined #cinch
<awkisopen> haven't asked any dumb questions in here for a while, so here goes: is there a way for me to search all users that Cinch is aware of
<awkisopen> loop through them, whatever
<leftylink> :o this seems like a fun question to answer. ok I try...
<dominikh> bot.channels.map { |ch| ch.users.values }.flatten.each
<leftylink> awkisopen: what about if we use http://www.rubydoc.info/gems/cinch/Cinch/Bot#channel_list-instance_method to first get a list of channels, and then for each channel
<leftylink> ... damn
<leftylink> beaten to the punch
<dominikh> leftylink: sorry.
<awkisopen> ahh @bot.channels. that was the missing piece
<awkisopen> tyvm
<leftylink> flat_map instead of map {}.flatten perhaps
<dominikh> fancy nonsense :P but yeah
<awkisopen> basically the use case is finding a user by their hostname
<dominikh> bot.channels.find { |ch| ch.users.values.find { |u| u.host == ... } }
<awkisopen> haha I can take it from there
<awkisopen> I just needed to know how to get at the dang userlist
<dominikh> we like throwing Ruby around is all
<awkisopen> OH
<awkisopen> @bot.user_list
<awkisopen> and yeah I know that feeling, haha
<dominikh> there is that, but obviously that will also include users that aren't in any channels but messaged the bot in private
<dominikh> also, if those users since disconnected, Cinch won't know and the user will still be in the user_list
<awkisopen> that's actually ideal in this case, funnily enough
<awkisopen> so is that!
<awkisopen> hah
<dominikh> fair enough :P
<awkisopen> but thanks that answers more questions
<dominikh> (if a user WAS in a channel and disconnected, he will disappear from that list, however.)
<awkisopen> gotcha. I'll cache their nicknames in those cases
<dominikh> it's essentially the multiton pattern