<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. :/