Re: Connecting to server via perl
Wouter Coekaerts <[email protected]> Mon, 10 Oct 2011 20:29:03 +0200
| Newsgroups | gmane.network.irc.irssi.user |
|---|---|
| Message-ID | <CAMmHUpdBtC6Uai5gzVCA34c5Zpd-=Hhn2A-+=p6pUzJzgdcwqQ@mail.gmail.com> |
Hi Mr libcrypt, On Sat, Oct 8, 2011 at 6:48 PM, <[email protected]> wrote: > I want to connect to a new server via my perl-script. > After taking a look at the perl-documentation it seems that I have to > use Irssi::server_create_conn. > You shouldn't use that function. It's really low-level API. It creates the structure to hold the connection, but it doesn't actually connect. It's only useful if you want to do some funky magic with connections. Unfortunately, there is no proper Perl API to just connect, so you have to use the command interface, just like a user would do: Irssi::command("connect ..."); Regards, Wouter.