ChanServ changed the topic of #cinch to: The IRC Framework | http://groups.google.com/group/cinch-ruby/ | Latest version: Cinch 2.0.4 – Change log at http://bit.ly/14Q4s6Z – Migration guide at http://bit.ly/GO4qkW | This channel is being publicly logged at http://irclog.whitequark.org/cinch/
rickmasta has joined #cinch
postmodern has quit [Quit: Leaving]
postmodern has joined #cinch
rickmasta has quit [Quit: Leaving...]
<rikai> Hm... Cinch formatting confuses me. :P
<dominikh> rikai: what's confusing about it?
<rikai> i think i'm just misunderstanding how it's meant to be used.
<rikai> I'm sure this is totally wrong:
<rikai> m.reply "Format(:blue, Format(:bold, "Last:") + Format(:orange, "#{last['display']}" ) + Format(:bold, "High" ) + Format(:orange, "#{high['display']}" ) + Format(:bold, "Low" ) + Format(:orange, "#{low['display']}" + Format(:bold, "Volume" ) + Format(:orange, "#{data['vol']}" ))"
<rikai> In fact, i'm almost completely sure it is :P
Mathieu has joined #cinch
<Mathieu> does Cinch have the ability to get user modes?
<Mathieu> or custom lines returned by the server in the WHOIS answer
<catepillar> I think it's in Channel.users
<catepillar> which is a hash of user=>mode(s)
<leftylink> well that would just be a list of channel modes that affect that user, right?
<leftylink> if we wanted user modes... hm.
jhaals has joined #cinch
<catepillar> That should do it... It gets the user modes for that channel...
<leftylink> that is not the same as the user modes
<leftylink> for example
<leftylink> how can clemmy determine that I am +R ?
<Mathieu> indeed I'd like the user modes, not the user channel modes
<catepillar> I can't even determine that you are +r, can i?
<Mathieu> the idea is authentication; I've seen that some servers have support in some ways
<Mathieu> on my server, the user gets a custom mode
<Mathieu> (the auth is done at connection, not by services)
<Mathieu> and a custom line in the whois answer
<Mathieu> I can check the mode of a user with /whois nickname, and I see both the custom mode and the custom line
<Mathieu> hence I'd like to get all these lines somewhere when I do a user.refresh
<catepillar> the only thing I have seen is user.authname, but I doubt that would work for you
jhaals has quit []
jhaals has joined #cinch
<dominikh> you can listen to specific numerics
postmodern has quit [Quit: Leaving]
<dominikh> or submit a patch to #authname to add support for it
<dominikh> or a patch adding a method to get the raw whois
<dominikh> possibly as a signal
<dominikh> rikai: that looks about right. would be less messy if you didn't spam colors :-P
<rikai> dominikh: true. It's by request, not my idea. ;)
<dominikh> "#{foo}" is a dumb way of writing foo though :-P also using String#% might make it clearer
<dominikh> Mathieu: User#modes for the modes, everything else I wrote for the custom line
<rikai> dominikh: thats the only way i could get the json parsing to work without syntax errors so *shrug* I've never claimed to be be intelligent, or even understand most of what i'm doing. :D
<dominikh> that's obvious :-P
<rikai> Most of my figuring out of things comes through excessive trial and error. And then once i find something that works, i don't look at it again until it breaks, at which point i curse myself for being so very stupid. :P
<dominikh> that's not figuring out, that's a million monkeys typing on a million typewriters
rickmasta has joined #cinch
<rikai> Fair enough. I tend to learn things in the process though. :P
rickmasta has quit [Quit: Leaving...]
whitequark has joined #cinch
qo has quit [Ping timeout: 245 seconds]
<rikai> Hm... Now why am i getting undefined method `Format'... *stares at code*
qb has joined #cinch
jcrawford has quit [Ping timeout: 246 seconds]
jcrawford has joined #cinch
<rikai> Yeah... I have no idea how to get formatting to work. The actual uses i see of it online do something like: m.reply "#{Format(:bold,'text')}", but that just gets me the fancy undefined method `Format' error. :/
whitequark has left #cinch [#cinch]
<dominikh> show actual code.
v0n has joined #cinch
v0n has quit [Read error: Operation timed out]
<Cinchy> [gist] Testing out some stuff... (at gist.github.com, rikai on 2013-04-12 13:10)
<dominikh> and the complete error?
<rikai> Annnnd i found the issue... For some reason it was forcing a very old version of cinch that was never uninstalled... *sigh*
<dominikh> …
<rikai> Yes, i am stupid.
v0n has joined #cinch
bean has joined #cinch
flexd has quit [Ping timeout: 252 seconds]
flexd has joined #cinch
jhaals has quit []
rickmasta has joined #cinch
bean has quit [Ping timeout: 264 seconds]
bean has joined #cinch
jhaals has joined #cinch
jhaals has quit []
v0n has quit [Ping timeout: 264 seconds]
postmodern has joined #cinch
bean has quit [Quit: Computer has gone to sleep.]
bean has joined #cinch
bean has quit [Quit: Computer has gone to sleep.]