dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.11
kith has quit [Ping timeout: 260 seconds]
Azure_ has joined #cinch
Azure has quit [Ping timeout: 260 seconds]
[krisbulman] is now known as krisbulman
Azure_ is now known as Azure
krisbulman is now known as [krisbulman]
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
cyrusdavid has quit [Ping timeout: 264 seconds]
Netfeed has quit [Ping timeout: 264 seconds]
jmaister has quit [Ping timeout: 264 seconds]
cyrusdavid has joined #cinch
jmaister has joined #cinch
Netfeed has joined #cinch
jmaister has quit [Ping timeout: 248 seconds]
Netfeed has quit [Changing host]
Netfeed has joined #cinch
kith has joined #cinch
kludge` has quit [Ping timeout: 252 seconds]
kludge` has joined #cinch
xeviox|afk is now known as xeviox
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
xeviox is now known as xeviox|afk
Spami has joined #cinch
Spami__ has quit [Ping timeout: 252 seconds]
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
<CM-Punk> Okay, I'm running into a simple layout issue, I'm hoping I can get help: http://pastebin.com/1axzKn3z
<CM-Punk> I need to find a way to insert if config[:enabled_channels].include?(m.channel.name)
<CM-Punk> To have it check if that channel is enabled before it spits out the output
<waxjar> return early. also refactor you method there, it's waaay too big :)
<CM-Punk> I'm still just leaving n00bishness and I didn't really understand that
<CM-Punk> XD
<CM-Punk> I think I get the refactoring of the method, break it up into seperate methods? But I don't understand where to return, or where to insert the check.
<waxjar> at the top of your method: return unless <this channel is enabled>
<CM-Punk> That makes sense, and it works
<CM-Punk> Thank you
<waxjar> np :)
[krisbulman] is now known as krisbulman