ChanServ changed the topic of #cinch to: The IRC Framework | http://groups.google.com/group/cinch-ruby/ | Latest version: Cinch 2.0.4 – Change log at http://bit.ly/14Q4s6Z – Migration guide at http://bit.ly/GO4qkW | This channel is being publicly logged at http://irclog.whitequark.org/cinch/
txdv has joined #cinch
postmodern has joined #cinch
heiko has quit [Quit: heiko]
catepillar has joined #cinch
<catepillar> hey
<catepillar> I seem to have this issue where if I use the plugin manager thing to reload a plugin
<catepillar> sometimes (if there is a bug in the runtime code it seems)
<catepillar> it will double load the plugin
<catepillar> if that makes sense
<catepillar> but if I run a command, the command gets executed 2x in 2 threads
<catepillar> is there a way to "fix" this
<catepillar> without having to reload the bot
Lite has left #cinch [#cinch]
heiko has joined #cinch
<dominikh> can you provide minimal executable code that reproduces the issue reliably? -- and no, if it already happened, the best bet is to restart the bot. it would be possibly to manually remove the handlers if you had a plugin that evals ruby code, and knew which handlers to remove how, but restarting the bot seems easier :)
<catepillar> yea
<catepillar> my bot is getting so big that it takes a minute to load all the plugins now
<catepillar> probably need to start seperating features out again
<catepillar> i really dunno what is causing it other than the plugin unloads fine. stops executing, then on reload its getting loaded twice
<dominikh> are you sure you're not messing up somewhere else?
<catepillar> i could very well be
<catepillar> its only happened two times, but they were both tonight
<dominikh> because right now I can't think of a possible code path that would load the plugin twice
<catepillar> well, im gonna start looking through logs
heiko has quit [Quit: heiko]
lagweezle has quit [Ping timeout: 240 seconds]
lagweezle has joined #cinch
v0n has joined #cinch
v0n has quit [Ping timeout: 246 seconds]
necronian has quit [Ping timeout: 255 seconds]
necronian has joined #cinch
jhaals has joined #cinch
jhaals has quit []
rikai has quit [Read error: Connection reset by peer]
heiko has joined #cinch
heiko has quit [Quit: heiko]
rikai has joined #cinch
rikai has quit [Ping timeout: 252 seconds]
rikai has joined #cinch
Dann1 has joined #cinch
jhaals has joined #cinch
jhaals has quit [Ping timeout: 244 seconds]
postmodern has quit [Quit: Leaving]
Dann1 has quit [Quit: GODDAMNIT]
v0n has joined #cinch
windowsrefund has joined #cinch
<windowsrefund> hello
<windowsrefund> I'm having a really hard time getting my method to see the 2nd argument
<windowsrefund> commits is always nil
<literal> I think the /.+/ part of your is matching to the end of the line since everything after that is optional
<literal> of your regex
<literal> you can make the + lazy by using /.+?/
<windowsrefund> perfect
<windowsrefund> thanks
Dann1 has joined #cinch
jhaals has joined #cinch
jhaals has quit [Ping timeout: 246 seconds]
jhaals has joined #cinch
Dann2 has joined #cinch
Dann1 has quit [Ping timeout: 240 seconds]
Dann1 has joined #cinch
Dann2 has quit [Ping timeout: 256 seconds]
jhaals has quit []
<catepillar> 13:53 < literal> you can make the + lazy by using /.+?/
<catepillar> isn't that the same thing as /.*/?
<literal> nope
<literal> +? still needs to match at least one
<literal> it just tries to match as little as possible, instead of as much as possible
<catepillar> weird
<literal> the latter was preventing the optional parts of his regex from matching
<catepillar> i should probably look at his full regex
<catepillar> ahhh
<catepillar> he was trying to match all non-space entities
<literal> yeah he could have used \S+ instead of .+? if nonspace is all he wanted
<catepillar> yeah, im pretty sure that's what im using in my code
Dann1 has quit [Quit: GODDAMNIT]