dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.3
postmodern has quit [Quit: Leaving]
britneywright has joined #cinch
Dunke has quit [Remote host closed the connection]
usandfriends has joined #cinch
<usandfriends>
Hello, I tried `m.user.away` but I'm getting a NoMethodError for #<User nick={{nick}}>
djbkd has quit [Remote host closed the connection]
<dominikh>
please show the exact, uncensored stacktrace, as well as the actual code
djbkd has joined #cinch
djbkd has quit [Quit: My people need me...]
postmodern has joined #cinch
<catepillar>
usandfriends: you can't change the bot prefix, but you can change plugins... it's a bit hacky, but you can set a prefix per plugin and reload them one by one
<usandfriends>
catepillar: I'm not using plugins unfortunately, but that's cool to think about
<usandfriends>
dominikh: #<NoMethodError: undefined method `away' for #<User nick="usandfriends">>
<usandfriends>
dominikh: It's an eval bot
<dominikh>
that's not a stacktrace.
<usandfriends>
dominikh: I don't have a stack trace
<dominikh>
then get one.
<usandfriends>
I can't
<dominikh>
well then there's nothing for me to do here
<catepillar>
you should also use plugins
<catepillar>
much easier to manage functionality with plugins
<usandfriends>
dominikh: It's running in a thread and it's not giving me a stack trace. :(
<catepillar>
what i generally do is make changes to the ruby file that is the plugin, then reload it
<catepillar>
but you could write a new plugin and load that
<usandfriends>
Interesing
<usandfriends>
interesting*
<catepillar>
the link i gave you actually uses the ruby `load` method to reparse your ruby files
<usandfriends>
Yeah.. Currently I just have a hash of lambdas and the main :channel event just checks if the key exists and executes the lambda with the string after the prefix
<usandfriends>
I can "bind" new lambdas by running `.bind name lambda { |args| ... }`, which eval()'s the lambda and stores it in the hash
<usandfriends>
I don't have access to my server while I am at school (port 22), so this is the way around it
<usandfriends>
I don't think the dynamic plugins would work for my case since I don't have the ability to upload the plugin file
<usandfriends>
But it would make my code 10x cleaner
dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.2.4
<dominikh>
update to 2.2.4 if you want User#away to work
<usandfriends>
dominikh: you are amazing
<usandfriends>
But thanks a lot for the gist catepillar, I'll keep it and maybe find some way to bypass the block
<catepillar>
ah, i remember the shitty hacks i ran around school port blocking
<dominikh>
school port blocking is so ridiculously easy to get around :P
<catepillar>
pretty sure I had ssh run over HTTP with some sort of hacked system that if you preformed a "GET" it displayed a blank web page
<catepillar>
ssh server run over port 80, with a web page if a GET was called