Closed MrJohz closed 10 years ago
I think you're just missing new
this.server = new irc.Client();
Hope that does the trick!
I'm really sorry, that may be the stupidest issue I've ever submitted. Thanks so much!
I have supported this in PR #5. You pass your options into irc.create()
which hands back the prepared Client
reference like connect()
did. Then, do whatever and wire things up, and when you're sure you want to connect, call irc.connect()
with no arguments.
The usage documentation uses the
irc.connect
function to immediately set the server in motion before adding handlers etc, but I was wondering if it were possible to useirc.Client
and set up the client, to be later started usingClient.connect()
.In the source it looks like
irc.connect
is just a convenience method to do this, but when I try to instantiate theClient
object like this:it just produces an error:
If it is possible to instantiate the client object directly, could you advise on how to do that, and if it isn't, how hard would it be to add that feature?
Thanks!