dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.1.0
postmodern has joined #cinch
postmodern has quit [Quit: Leaving]
Kelet has joined #cinch
<Kelet>
Is there anyway to get the number of users in a channel without joining it (which can typically be done via /list)
<dominikh>
well, you can send a LIST and listen for the answer
<Kelet>
dominikh: Sorry - quite new. How do I send a raw thing like that?
<dominikh>
@bot.irc.send("your raw irc command here")
<Kelet>
ty, i'll play with it
<dominikh>
in that case that'd be something like "LIST #channel"
geopet has joined #cinch
<Kelet>
dominikh: Is there an easy way to receive the results in a variable?
geopet has quit [Client Quit]
<Kelet>
That works fine otherwise
<dominikh>
you'll need to listen for the answer (which is in the 322 message) and somehow communicate that back to where you need it
<dominikh>
(or do your actual work in the listener)
<Kelet>
dominikh: Is there a listener class already instantiated somewhere or do I have to make one?
<dominikh>
either you're using the plugin architecture, have a class for your particular plugin and are using the listen_to method, or you're using the basic `on` handlers, in which case it's just `on "322" ...`
<Kelet>
Ah, I'm using the plugin architecture, what should I listen_to?
<dominikh>
also 322.
<Kelet>
Oh, sorry.
<dominikh>
(also known as Cinch::Constants::RPL_LIST
<Kelet>
dominikh: Exactly waht I wanted. And it has pattern which is excellent!. Are you a developer?
<dominikh>
I'm the developer :)
geopet has joined #cinch
<Kelet>
dominikh: Well, great work. I really like your project and how it works :)
<dominikh>
thanks :)
<Kelet>
and the fact that you helped me despite my newbiness, thanks
<dominikh>
no problem
geopet has quit []
<Kelet>
dominikh: Do you know in the LUSER message, which one is the total number of users on an IRC network?
<Kelet>
dominikh: I see RPL_LUSER* but most are undocumented in your constants