dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.5
Spami has quit [Quit: This computer has gone to sleep]
rickmasta has quit [Quit: Leaving...]
Spaceghost has joined #cinch
Spaceghost is now known as Guest78167
Guest78167 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch
rickmasta has joined #cinch
davidh has joined #cinch
<davidh> hi, I am going through a list of usernames, and need to do something unless that username is currently on the channel
<davidh> m.channel.users is a list of nicks
<davidh> and m.channel.has_user? uses nick or user object
<dominikh> so?
<davidh> i only have usernames to work with
<davidh> and I do not know of any way to check if a certain username is on the channel
<dominikh> then you will have to check every user's username and compare it. and that, fwiw, is a very expensive thing to do for big channels.
<dominikh> m.channel.users.values.any? { |user| user.user == the_user_name_i_have }
<dominikh> davidh: also, do you mean user name or do you mean the name with which they're authenticated to e.g. nickserv?
<dominikh> (fwiw, user name isn't expensive, it's part of WHO. auth name would be expensive)
<davidh> just username
<dominikh> makes me curious why you're dealing with those instead of nicks, but anyway, see the line of code from above then.
<davidh> maybe i should just use nicks...
<davidh> It just seems to me that usernames are less likely to be changed from time to time
davidh is now known as davidh_
<dominikh> user names aren't unique.
<davidh_> see? my username is still the same
<dominikh> yeah, but there might be 10 other people with the same username
<davidh_> true.
rickmasta has quit [Quit: Leaving...]
davidh_ has left #cinch ["thanks, dominikh"]
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
cout_ is now known as cout
space has joined #cinch
space is now known as Guest96823
Spaceghost has quit [Ping timeout: 252 seconds]
Guest96823 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch
jonahR has joined #cinch
rickmasta has quit [Quit: Leaving...]
Spami has joined #cinch
Spami has joined #cinch
jonahR has quit [Quit: jonahR]
d4rkr4i has joined #cinch
<d4rkr4i> hola people. I just started using cinch and it totally blew my mind.
<d4rkr4i> I am creating my own plugins, working smooth. :) Can you guys tell how I can handle two different matches in a class with tow different actions?
<d4rkr4i> currently, on encountering match, `execute` is triggered.
<d4rkr4i> ayonix: thanks a lot! I also got some reference in join_part plugins example . :)
<ayonix> sure, no problem
d4rkr4i has quit [Quit: Leaving.]
d4rkr4i has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
d4rkr4i has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
rickmasta has joined #cinch
Spaceghost has quit [Read error: Connection reset by peer]
Spaceghost has joined #cinch
Spaceghost is now known as Guest67066
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
Guest67066 is now known as Spaceghost
Spaceghost has quit [Changing host]
Spaceghost has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
postmodern has quit [Quit: Leaving]
Spami has joined #cinch
rikai_ has joined #cinch
rikai has quit [Ping timeout: 268 seconds]
rickmasta has quit [Quit: Leaving...]
v0n has joined #cinch
space has joined #cinch
space is now known as Guest77126
Spaceghost has quit [Ping timeout: 240 seconds]
v0n has quit [Ping timeout: 260 seconds]
Spami has quit [Quit: This computer has gone to sleep]
Spami has joined #cinch
Spami has joined #cinch
postmodern has joined #cinch
FiXato|VPS is now known as FiXato
v0n has joined #cinch