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]
[krisbulman] is now known as krisbulman
caesura has joined #cinch
<caesura>
hello all
krisbulman is now known as [krisbulman]
<caesura>
i'm trying to create a User object from a string containing its nick
<caesura>
i don't understand why the User constructor takes two arguments
<caesura>
setting the second argument to nil brings up some errors
<caesura>
do you guys know what's going on?
<caesura>
in the source, there's an instance variable called @bot that's being thrown around, but I'm not even sure what class @bot is
<caesura>
oh it's probably Bot... i'm an idiot
<dominikh>
caesura: don't use the constructor
<caesura>
ok
<dominikh>
caesura: are you writing a plugin, or using Cinch's APIs directly?
<caesura>
how should i create user objects then?
<caesura>
uh i'm writing a plugin
<dominikh>
User("foo")
<caesura>
that's all?
<dominikh>
User is a method defined in the Helpers module that gets included
<caesura>
wow, thanks
<dominikh>
no problem
kith has quit [Read error: Connection reset by peer]
kith has joined #cinch
postmodern has quit [Quit: Leaving]
[krisbulman] is now known as krisbulman
krisbulman is now known as [krisbulman]
Spami has joined #cinch
caesura has quit [Quit: Leaving]
kludge` has quit [Remote host closed the connection]
kludge` has joined #cinch
Spami has quit [Quit: This computer has gone to sleep]
kludge` has quit [Ping timeout: 276 seconds]
kludge` has joined #cinch
xeviox|afk is now known as xeviox
[krisbulman] is now known as krisbulman
<frdmn>
dominikh: I tried adding "bot.log(team['channel'].inspect)" before line 135, but it didnt show any output, so I tried "puts team['channel'].inspect" and that worked