dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.11
[krisbulman] is now known as krisbulman
krisbulman is now known as krisbulman|afk
<
onewheelskyward>
Yep
<
onewheelskyward>
Ah nice, catepillar
<
onewheelskyward>
CM-Punk It's backed by a postgres db.
krisbulman|afk is now known as [krisbulman|afk]
<
CM-Punk>
Oh that's good onewheelskyward
[krisbulman|afk] is now known as krisbulman
<
catepillar>
let's say I have an array of strings that are plugins
<
catepillar>
how do I convert the strings into classes to be loaded by cinch?
<
catepillar>
i would rather like to avoid Kernel.exec if possible seeing as these strings are coming from a config file
<
catepillar>
and could be potentially tainted
<
catepillar>
i think Object.const_get() is what i want
<
catepillar>
config.plugins.plugins = yaml["plugins"].keys.collect { |p| Object.const_get(p) }
<
catepillar>
this would be safe, correct?
v0n has joined #cinch
krisbulman is now known as [krisbulman]
<
CM-Punk>
It looks like it should be
[krisbulman] is now known as krisbulman
v0n has quit [Ping timeout: 272 seconds]
krisbulman is now known as [krisbulman]
<
catepillar>
dominikh: do you have the code for !eval availible anywhere?
<
onewheelskyward>
ah, I did that cate
<
onewheelskyward>
ah, I did that catepillar
<
catepillar>
awesome thanks
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
<
netfeed1>
that looks easier than how i do it
<
netfeed1>
plugin["class"].split("::").inject(Object) { |m,n| clazz = m.const_get(n) }; plugins << clazz
<
onewheelskyward>
Oh and you depend on the namespace
<
onewheelskyward>
My plugins don't have one.
<
onewheelskyward>
I suppose I should fix that. :)
netfeed1 is now known as Netfeed
Netfeed has quit [Changing host]
Netfeed has joined #cinch
<
Netfeed>
yeah, kinda need to do that in cinchize
<
onewheelskyward>
ah, nice
<
onewheelskyward>
Interesting, does it pass options directly to the plugins?
<
onewheelskyward>
oh, nevermind.
<
Netfeed>
that's solved too
<
Netfeed>
all plugins gets whatever options that is configed or an empty one
thews has quit [Ping timeout: 265 seconds]
thews has joined #cinch
Spami has joined #cinch
Dunke|sleep is now known as Dunke|Work
Spami has quit [Quit: This computer has gone to sleep]
cyrusdavid has joined #cinch
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
kludge` has quit [Ping timeout: 272 seconds]
kludge` has joined #cinch
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
v0n has joined #cinch
[krisbulman] is now known as krisbulman
postmodern has quit [Quit: Leaving]
krisbulman is now known as [krisbulman]
[krisbulman] is now known as krisbulman
Spami has joined #cinch
<
catepillar>
i handle most of my plugin loading by using the shared hash
<
catepillar>
probably like Netfeed's set up
Zackio is now known as CaveJohnson
Spami has quit [Quit: This computer has gone to sleep]
<
onewheelskyward>
CM-Punk Thanks for the tip on colors. I used it to spice up my weather display.
<
CM-Punk>
Oh really onewheelskyward?
<
CM-Punk>
Can I see?
<
onewheelskyward>
join #cinch-bots
<
CM-Punk>
~join #cinch-bots
rikai has quit [Ping timeout: 246 seconds]
rikai has joined #cinch
krisbulman is now known as [krisbulman]
postmodern has joined #cinch
Azure has quit [Read error: Connection reset by peer]
Azure has joined #cinch
v0n has quit [Quit: WeeChat 0.4.2]
v0n has joined #cinch