dominikh changed the topic of #cinch to: The IRC Framework | Latest version: Cinch 2.0.9
ayonix has quit [Quit: No Ping reply in 180 seconds.]
ayonix has joined #cinch
Spami has quit [Ping timeout: 248 seconds]
postmodern has quit [Quit: Leaving]
Spami has joined #cinch
Spami has quit [Max SendQ exceeded]
FiXato has quit [*.net *.split]
FiXato has joined #cinch
v0n has quit [Ping timeout: 260 seconds]
jonahR has joined #cinch
jonahR has left #cinch [#cinch]
kludge` has quit [Ping timeout: 240 seconds]
kludge` has joined #cinch
_whitelogger has joined #cinch
kludge` has quit [Ping timeout: 264 seconds]
kludge` has joined #cinch
postmodern has joined #cinch
rsrx is now known as resure
postmodern has quit [Quit: Leaving]
v0n has joined #cinch
rickmasta has joined #cinch
v0n has quit [Ping timeout: 240 seconds]
v0n has joined #cinch
rickmasta has quit [Quit: Leaving...]
rickmasta has joined #cinch
rickmasta has quit [Quit: Leaving...]
leftylink has quit [Ping timeout: 268 seconds]
leftylink has joined #cinch
leftylink has quit [Ping timeout: 248 seconds]
leftylink has joined #cinch
leftylink is now known as Guest59947
Guest59947 has quit [Ping timeout: 264 seconds]
leftylin1 has joined #cinch
taro_ has joined #cinch
<
taro_>
is there a way in a plugin to call a function from another plugin?
<
dominikh>
technically, yeah
<
dominikh>
@bot.plugins.find{|p| p.class == ThePluginIWant}.your_method(...)
rickmasta has joined #cinch
Spami has joined #cinch
Trufax is now known as woop
Kalpar has joined #cinch
<
Kalpar>
Anyone willing to help me with an error I'm getting?
<
Kalpar>
I'm getting this:
<
Kalpar>
NoMethodError - undefined method `isupport' for nil:NilClass:
<
Kalpar>
/var/lib/gems/1.9.1/gems/cinch-2.0.9/lib/cinch/channel_list.rb:14:in `find_ensured'
<
Kalpar>
and I'm not sure why
<
catepillar>
we need to see some code
<
catepillar>
but it seems like a method is getting called on an object that is nil
<
catepillar>
so whatever is calling it should probably be checked...
<
catepillar>
a full stacktrace would also be helpful
<
Kalpar>
Pastbin is offline... :(
<
Kalpar>
But I agree, the object appears to be nil
<
catepillar>
use that
<
catepillar>
and you can attach multiple things in gist
<
Kalpar>
Actually... I just updated the full code...
<
catepillar>
the error is defintely on line 37. on the gist it's "$bot.Channel(channel).send msg"
<
Kalpar>
Do you mean that the line has an error? or that its being generated by it?
<
catepillar>
that's valid
<
catepillar>
assuming $bot is a valid object
<
catepillar>
i don't use the $ in ruby... ever
<
Kalpar>
Reload the code and you'll see the full code there
<
catepillar>
i assume that makes it a global
<
catepillar>
next thing is to make sure your bot is actually in
*every* channel that is in your config
<
Kalpar>
It logs into the IRC server and sees messages in the channel.
<
Kalpar>
So yes, it is
<
catepillar>
if it gets kicked or can't connect to that channel for some reason
<
Kalpar>
[2013/10/09 12:58:45.075] >> :kalpar!kalpar@ops-A4C321E4 PRIVMSG #techteam :Hello Dave
<
Kalpar>
That was right before it
<
Kalpar>
So its in the channel
Spami has quit [Read error: Connection timed out]
Spami has joined #cinch
Spami has quit [Changing host]
Spami has joined #cinch
<
catepillar>
the other thing that is getting me is the $bot.Channel
<
catepillar>
i always call it as Channel("channel")
<
catepillar>
no need for the bot
<
catepillar>
but i use plugins
<
Kalpar>
Ya, plugins would be different... as it is scoped as such
<
catepillar>
you might be better off doing $bot.channels.each |channel|
<
catepillar>
instead of going through your $config
<
catepillar>
and Channel("channel") might still work
UberDragon has left #cinch [#cinch]
UberDragon has joined #cinch
v0n has quit [Read error: Operation timed out]
woop has left #cinch [#cinch]
postmodern has joined #cinch
Spami has quit [Read error: Connection timed out]